Solved

Cell width and height

Posted on 2014-04-29
3
264 Views
Last Modified: 2014-04-29
I would like to set all the cells in my worksheet to:
cell height 17
And for A to R width 39.

Also I would like to do this for multiple worksheets. For example tabs across the bottom from 2 to 6.
0
Comment
Question by:WTC_Services
  • 2
3 Comments
 
LVL 33

Expert Comment

by:Norie
ID: 40031000
Try this.
Dim ws As Worksheet
Dim I As Long

    For I = 2 To 6

        Set ws = Worksheets(I)

        ws.Range("A:R").ColumnWidth = 39

        ws.Rows.RowHeight = 17

    Next I

Open in new window

0
 

Author Comment

by:WTC_Services
ID: 40031004
Perfect thanks.

Will this effect merged cells?
0
 
LVL 33

Accepted Solution

by:
Norie earned 500 total points
ID: 40031024
If you mean will the cells that are merged have their row and height changed then yes, but the cells will still stay merged.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Concatenate  strings with original parameters 21 41
round down to max number 11 32
remove dups 10 35
Excel Cell Total 3 20
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question