Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Use VBA to change row height or width??

I know how to change the width of a column by using the
following code:

Columns(1).ColumnWidth = 14

The problem is that I can't seem to find an equivalent
way to change the dimension of a row. Is there
an equivalent Rows() object that I can use in a similar manner?

thankx

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Use VBA to change row height or width??

I'm referring to the letters/numbers on the top and left edge of the
worksheet.

Run this code somewhere in a VBA module:

Rows(1).RowHeight = 30

Now, on the menu bar click ToolsOptionsViewRow and Column Headers.
In my version of Excel it won't let me "uncheck" the option that says
"Headings" to off the row or column headings.

Does anybody know what's going on here?



"JLGWhiz" wrote in message
...
Which headings are you referring to?

1. On the menu bar ViewHeader and Footer refers to the page header and
footer that prints out, not the row and column headers.

2. On the menu bar ToolsOptionsViewRow and Column Headers refers to
the letters and numbers along the top and left edge of the worksheet.
Checking the box will show these characters, unchecking will take them
away.

3. If you are referring to the header row(s) or column(s) that you
created, you will hide them to make them go away. They cannot be
controlled from with the View menu.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 527
Default Use VBA to change row height or width??

Robert, is this what you want?

ActiveWindow.DisplayHeadings = Not ActiveWindow.DisplayHeadings

Toggles the row/column headers


HTH
Peter

"Robert Crandal" wrote:

I'm referring to the letters/numbers on the top and left edge of the
worksheet.

Run this code somewhere in a VBA module:

Rows(1).RowHeight = 30

Now, on the menu bar click ToolsOptionsViewRow and Column Headers.
In my version of Excel it won't let me "uncheck" the option that says
"Headings" to off the row or column headings.

Does anybody know what's going on here?



"JLGWhiz" wrote in message
...
Which headings are you referring to?

1. On the menu bar ViewHeader and Footer refers to the page header and
footer that prints out, not the row and column headers.

2. On the menu bar ToolsOptionsViewRow and Column Headers refers to
the letters and numbers along the top and left edge of the worksheet.
Checking the box will show these characters, unchecking will take them
away.

3. If you are referring to the header row(s) or column(s) that you
created, you will hide them to make them go away. They cannot be
controlled from with the View menu.


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Use VBA to change row height or width??

Ya, that's perfect. I just dont understand why Excel wont let me
uncheck the "Headings" box normally after I run the following
code:

Rows(1).RowHeight = 30

Maybe it's an Excel bug or something???


"Billy Liddel" wrote in message
...
Robert, is this what you want?

ActiveWindow.DisplayHeadings = Not ActiveWindow.DisplayHeadings

Toggles the row/column headers



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use VBA to change row height or width?? Robert Crandal Excel Programming 1 November 27th 09 12:10 AM
Change Row/Column Height & Width DaveL New Users to Excel 1 May 19th 09 09:15 PM
Changing row height/column width & see the value change while drag DJ Excel Discussion (Misc queries) 0 February 24th 09 04:42 PM
Change height and width of a single cell R. Johnson Excel Discussion (Misc queries) 3 February 20th 08 07:34 PM
How do i change the height and width of a single cell in Excel? lotus1107 Charts and Charting in Excel 1 August 8th 05 02:36 AM


All times are GMT +1. The time now is 12:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"