Dear Gents,
my code as following
Dim MyFile As String
MyFile = ActiveWorkbook.Name
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:="D:\E-DRIVE2\1234567\Logbook\2016\" & MyFile
End sub
my current file name is "LogBook July"
My question are:
1) I would like to save this file name as LogBook +"month name" like "LogBook Aug", "LogBook Nov". How do i make this happen?
2) I want to make a inputbox to input the year to replace the save location "2016" and let the file save to 2017 folder if the year is over 2017.
I try to use formula like =month(today()) ... but can't figure out.

Hope anybody can help me.
Thanks.
my code as following
Dim MyFile As String
MyFile = ActiveWorkbook.Name
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:="D:\E-DRIVE2\1234567\Logbook\2016\" & MyFile
End sub
my current file name is "LogBook July"
My question are:
1) I would like to save this file name as LogBook +"month name" like "LogBook Aug", "LogBook Nov". How do i make this happen?
2) I want to make a inputbox to input the year to replace the save location "2016" and let the file save to 2017 folder if the year is over 2017.
I try to use formula like =month(today()) ... but can't figure out.


Hope anybody can help me.
Thanks.