workbook code - new sheet created...

  • Thread starter Thread starter J.W. Aldridge
  • Start date Start date
J

J.W. Aldridge

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

Columns("A:A").Select
Selection.NumberFormat = "0"
 
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
 
exactly what I was looking for...

couldnt remember the "Sub Workbook_NewSheet" part.

Thanx!
Thanx too Mr. Don!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top