Solved

Cell width and height

Posted on 2014-04-29
3
263 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now