SirJB7
Excel Rōnin
Hi!
Last week I was checking the non-replied posts and I found one from user pacochin that was referred to a diagram of train's time schedule. I liked the design so I decided to excercise the old and forgotten objects like the 'Line' one.
Everything went on without problems, exception made with Excel metrics, as I tried to adjust row heights and column widths from VBA code. Just maybe there's an analogy between how Excel measures heights and widths and the infamous 640Kb of memory in very earliers PC.
As I have always wondered why there wasn't a straight and clear relation between the pair of numbers displayed when we change a row height or a column width, I first decided to go to Microsoft website. As expected, I got dissapointed when I only found this http://office.microsoft.com/en-us/excel-help/measurement-units-and-rulers-in-excel-HP001151724.aspx. (For those who'll follow the links chain, what does a unit may have to do related to the width of the 0 character of normal style font??? Isn't it a little obscure?).
Searching on the web, I only found references directs or indirects to that article or its inner figures. I was beginning to ask me seriously why, when I decided to take the experimental path, so I build a spreadsheet with differents heights and widths and fonts and sizes, wrote a little VBA code, and got the data in a clean new sheet.
Think it was easy? So did I, just as I divided the figures got to obtain the magic number called ratio... and nothing! Differences everywhere in column widths, and something more accurate, nearly exact, in row heights: the same relation 4:3 that MS stated in their very-extremely brief and incomplete (I now understand why, it's impossible to explain how do they measure without getting embarrased) page ut-supra.
I had to do work with pixels (the number between parenthesis in sheets) for the column widths, and in points (the number not between parenthesis in sheets) for the row heights. And I'm still wondering why, for the sake of whoever everyone wants to, why the properties Row(i).RowHeight and Column(j).ColumnWidth retrieve incoherent and incongruent values?
Even after having made what I would call nearly magic, I doubted it would function, so I zoomed to the maximum available 400% the worksheet, only to confirm what my eyes make me thought it was still wrong: I had to define an adjusting correction constant to each row, remembering that someplace somewhere I had seen that the border's single line was 0.75 point width.
So, I honestly believe that is incredible that after more than 10 or 15 years of Excel evolution, Microsoft still doesn't arrange methods simple and clear and congruent to accomplish such silly things like resizing rows and columns.
Or, in the other hand, why am I so incapable of finding the so simple instruction, method or property to discover that 1+1 still remains 2, and not something like a gaussian distribution of the first million Pi's digits.
Thanks a lot in advance.
Regards!
PS: if anyone at Chandoo.org considers that this post should be moved to forum "VBA & Macros", please do it if it's possible, or let me know it to repost. Thanks.
Last week I was checking the non-replied posts and I found one from user pacochin that was referred to a diagram of train's time schedule. I liked the design so I decided to excercise the old and forgotten objects like the 'Line' one.
Everything went on without problems, exception made with Excel metrics, as I tried to adjust row heights and column widths from VBA code. Just maybe there's an analogy between how Excel measures heights and widths and the infamous 640Kb of memory in very earliers PC.
As I have always wondered why there wasn't a straight and clear relation between the pair of numbers displayed when we change a row height or a column width, I first decided to go to Microsoft website. As expected, I got dissapointed when I only found this http://office.microsoft.com/en-us/excel-help/measurement-units-and-rulers-in-excel-HP001151724.aspx. (For those who'll follow the links chain, what does a unit may have to do related to the width of the 0 character of normal style font??? Isn't it a little obscure?).
Searching on the web, I only found references directs or indirects to that article or its inner figures. I was beginning to ask me seriously why, when I decided to take the experimental path, so I build a spreadsheet with differents heights and widths and fonts and sizes, wrote a little VBA code, and got the data in a clean new sheet.
Think it was easy? So did I, just as I divided the figures got to obtain the magic number called ratio... and nothing! Differences everywhere in column widths, and something more accurate, nearly exact, in row heights: the same relation 4:3 that MS stated in their very-extremely brief and incomplete (I now understand why, it's impossible to explain how do they measure without getting embarrased) page ut-supra.
I had to do work with pixels (the number between parenthesis in sheets) for the column widths, and in points (the number not between parenthesis in sheets) for the row heights. And I'm still wondering why, for the sake of whoever everyone wants to, why the properties Row(i).RowHeight and Column(j).ColumnWidth retrieve incoherent and incongruent values?
Even after having made what I would call nearly magic, I doubted it would function, so I zoomed to the maximum available 400% the worksheet, only to confirm what my eyes make me thought it was still wrong: I had to define an adjusting correction constant to each row, remembering that someplace somewhere I had seen that the border's single line was 0.75 point width.
So, I honestly believe that is incredible that after more than 10 or 15 years of Excel evolution, Microsoft still doesn't arrange methods simple and clear and congruent to accomplish such silly things like resizing rows and columns.
Or, in the other hand, why am I so incapable of finding the so simple instruction, method or property to discover that 1+1 still remains 2, and not something like a gaussian distribution of the first million Pi's digits.
Thanks a lot in advance.
Regards!
PS: if anyone at Chandoo.org considers that this post should be moved to forum "VBA & Macros", please do it if it's possible, or let me know it to repost. Thanks.