Solved

Cell width and height

Posted on 2014-04-29
3
266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

762 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