Recording Macro To Duplicate Page And Rename To Numeric Value
Solved/Closed
Shaun@1
Posts
2
Registration date
Sunday March 13, 2016
Status
Member
Last seen
March 15, 2016
-
Mar 13, 2016 at 04:19 AM
Shaun@1 Posts 2 Registration date Sunday March 13, 2016 Status Member Last seen March 15, 2016 - Mar 15, 2016 at 10:04 AM
Shaun@1 Posts 2 Registration date Sunday March 13, 2016 Status Member Last seen March 15, 2016 - Mar 15, 2016 at 10:04 AM
Related:
- Recording Macro To Duplicate Page And Rename To Numeric Value
- Rename computer cmd - Guide
- How to rename lg tv - Guide
- How to download recording from messenger - Guide
- Audacity listen while recording - Guide
- How to send recording in messenger - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Mar 14, 2016 at 12:38 PM
Mar 14, 2016 at 12:38 PM
Hi Shaun,
The following code will do as requested, even when you reach the 4 digits.
Just make sure you run the code from the latest invoice.
Best regards,
Trowa
The following code will do as requested, even when you reach the 4 digits.
Just make sure you run the code from the latest invoice.
Sub RunMe() Dim MyNumber As Integer MyNumber = Right(ActiveSheet.Name, 4) + 1 ActiveSheet.Copy after:=Sheets(ActiveSheet.Name) ActiveSheet.Name = "Invoice " & MyNumber Range("E8").Value = MyNumber End Sub
Best regards,
Trowa
Mar 15, 2016 at 10:04 AM
This works perfectly.
Thank you very much I appreciate your help.
Kind regards
Shaun