Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

formating

ResolvedVersion 2003

David has attended:
Excel VBA Intro Intermediate course

Formating

How do you autosize a Excel cell in VBA?

RE: formating

Hi David,

Welcome to the forum. Thank you for your question regarding autosizing a cell.

To autoszing a cell you use the Autofit command to the row and column. For Example

    Rows("3:3").EntireRow.AutoFit
Columns("F:F").EntireColumn.AutoFit



Please let me know how you get on.


Laura GB

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Selecting blank cells within a range of data

Select the range of data which includes the blank cells that you would like to select. Press the F5 key, this will take you to the GoTo dialogue box where you can click on Special and then select Blanks.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.