Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
workbook code - new sheet created...
Looking for workbook code that runs on each new sheet created.
Columns("A:A").Select Selection.NumberFormat = "0" |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
workbook code - new sheet created...
How is the new sheet created, by code or manually?
--- Per On 1 Maj, 21:28, "J.W. Aldridge" wrote: Looking for workbook code that runs on each new sheet created. * * Columns("A:A").Select * * Selection.NumberFormat = "0" |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
workbook code - new sheet created...
activesheet.Columns("A").NumberFormat = "0"
-- Don Guillett Microsoft MVP Excel SalesAid Software "J.W. Aldridge" wrote in message ... Looking for workbook code that runs on each new sheet created. Columns("A:A").Select Selection.NumberFormat = "0" |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
workbook code - new sheet created...
from double clicking on a total in pivot table...
|
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
workbook code - new sheet created...
Hi
Insert this in the codesheet for ThisWorkbook. Private Sub Workbook_NewSheet(ByVal Sh As Object) sh.Columns("A:A").NumberFormat = "0" End Sub Best regards, Per On 1 Maj, 22:06, "J.W. Aldridge" wrote: from double clicking on a total in pivot table... |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
workbook code - new sheet created...
exactly what I was looking for...
couldnt remember the "Sub Workbook_NewSheet" part. Thanx! Thanx too Mr. Don! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Code to change code in a sheet and workbook module | Excel Programming | |||
Trying To Push Code For Worksheet_Change Into VBA-Created Workbook? | Excel Programming | |||
new sheet created 'on the fly' from template in same workbook - H. | Excel Worksheet Functions | |||
Adding Code to the This_workbook module of a created workbook | Excel Programming | |||
how do you select the "last" sheet (created) in a workbook | Excel Programming |