Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

In VB\Excel resize cells

Status
Not open for further replies.

q4s72534

MIS
Aug 19, 2003
59
US
ex:


|this is my exa| |Ye| |1|

It should say:

|this is my example| |Yes| |10|

In vb i want to record a macro in excel, higlight everything and clik something that will resize the cells according to the data in them. Is there a way to do this all at once?

Thanks.
 
Just do it!

You should see something like this in your recorded macro:
[blue]
Code:
    Columns("A:C").EntireColumn.AutoFit
[/color]


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top