Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Increasing the width/height of cells programatically

Hi,
I have made an Excel VBA application where new sheets are automaticall
added on button click. I wanted to know how one can change the name o
the new excel sheet created and more importantly how does one chang
the width and height of cells in the new sheet.

Thanks,
Samee

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Increasing the width/height of cells programatically

Hi Sameer
Try and use the macro recorder.
Here's a sample code though:
Sheets.Add
ActiveSheet.Name = "Sheet11"
Rows("2:2").RowHeight = 20
Columns("B:B").ColumnWidth = 20

HTH
Cordially
Pascal



"sameerce " a écrit dans le
message de ...
Hi,
I have made an Excel VBA application where new sheets are automatically
added on button click. I wanted to know how one can change the name of
the new excel sheet created and more importantly how does one change
the width and height of cells in the new sheet.

Thanks,
Sameer


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Increasing the width/height of cells programatically

Try the following to change the whole worksheet column width and row heights


Sheets("Sheet1").Name = "YourName"
Cells.ColumnWidth = 15.5
Cells.RowHeight = 25.5

Cheers
Nigel

"sameerce " wrote in message
...
Hi,
I have made an Excel VBA application where new sheets are automatically
added on button click. I wanted to know how one can change the name of
the new excel sheet created and more importantly how does one change
the width and height of cells in the new sheet.

Thanks,
Sameer


---
Message posted from http://www.ExcelForum.com/



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
Increasing width of columns in column chart Shelly Charts and Charting in Excel 2 June 22nd 09 02:36 AM
increasing height of cells without decreasing size of data joaniep New Users to Excel 1 July 19th 08 07:02 PM
Cells Fixed height and width Rayelle Excel Discussion (Misc queries) 1 January 23rd 07 12:19 AM
Prevent Row Height from increasing when Pasting lenghthy text into Cell. Hal Excel Worksheet Functions 3 August 25th 06 10:23 PM
Problem increasing .PlotArea.Height value Xavier Charts and Charting in Excel 4 August 11th 06 08:41 AM


All times are GMT +1. The time now is 10:17 PM.

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"