macro help

  • Thread starter Thread starter michael
  • Start date Start date
M

michael

I would like to create a macro that will increase
numerically the worksheet number.
 
Sub AddOne()
On Error Resume Next
ActiveSheet.Name = CStr(Val(ActiveSheet.Name) + 1)
End Sub

HTH. best wishes Harald
 

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