Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Increasing width of columns in column chart | Charts and Charting in Excel | |||
increasing height of cells without decreasing size of data | New Users to Excel | |||
Cells Fixed height and width | Excel Discussion (Misc queries) | |||
Prevent Row Height from increasing when Pasting lenghthy text into Cell. | Excel Worksheet Functions | |||
Problem increasing .PlotArea.Height value | Charts and Charting in Excel |