Thread
:
Getting Column width using macro..
View Single Post
#
3
Posted to microsoft.public.excel.programming
Don Guillett[_4_]
external usenet poster
Posts: 2,337
Getting Column width using macro..
why not just use this and drag from left to right
=CELL("width",B2)
--
Don Guillett
SalesAid Software
"KM" wrote in message
...
I need some help creating a macro in MS Excel.
Say I have a worksheet with 20+ columns of various column
widths. All I need is to get the size of each column and
put it in a cell of the respective column.
If the cursor was placed on a row where the column
headings are available, I want the macro,
to get width of respective column and save it in the next
row
go to next column and do step 1
stop when no more columns are available (say it reaches
the empty cell)
After executing the macro, the Worksheet should look
something like this:
A B C D E
Name ID DOB Comment
15.14 8.43 11.14 25
Thanks in Advance for the help.
KM
Reply With Quote
Don Guillett[_4_]
View Public Profile
Find all posts by Don Guillett[_4_]