workbook code - new sheet created...

J

J.W. Aldridge

Looking for workbook code that runs on each new sheet created.

Columns("A:A").Select
Selection.NumberFormat = "0"
 
P

Per Jessen

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
 
J

J.W. Aldridge

exactly what I was looking for...

couldnt remember the "Sub Workbook_NewSheet" part.

Thanx!
Thanx too Mr. Don!
 
Top