ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   macro help (https://www.excelbanter.com/excel-worksheet-functions/12494-macro-help.html)

michael

macro help
 
I would like to create a macro that will increase
numerically the worksheet number.

Harald Staff

Sub AddOne()
On Error Resume Next
ActiveSheet.Name = CStr(Val(ActiveSheet.Name) + 1)
End Sub

HTH. best wishes Harald

"michael" skrev i melding
...
I would like to create a macro that will increase
numerically the worksheet number.





All times are GMT +1. The time now is 03:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com