Get_Involved
Active Member
- Joined
- Jan 26, 2007
- Messages
- 383
How do I restructure this part of the code, to put todays year, month, and date, before this part of the code?
Example: 2018121773 , year/month/date,2018/12/17+ 27 the updated number on the end.
This will create a Authorization number.
In the complete code I have to manually input the numbers the first time and it increases the end of it.
Thanks for any help.
Code:
Private Sub Workbook_Open()
Dim Ans As String
Ans = MsgBox("Update Invoice Number (???)", vbYesNo + vbInformation)
If Ans = vbYes Then
Example: 2018121773 , year/month/date,2018/12/17+ 27 the updated number on the end.
This will create a Authorization number.
Code:
With Sheets("Expense Report").Range("H4")
.Value = .Value + 1
In the complete code I have to manually input the numbers the first time and it increases the end of it.
Code:
Private Sub Workbook_Open()
Dim Ans As String
Ans = MsgBox("Update Invoice Number (???)", vbYesNo + vbInformation)
If Ans = vbYes Then
With Sheets("Expense Report").Range("H4")
.Value = .Value + 1
Thanks for any help.