Harald,
Sorry to be a pain in the bo**om.
The end part of the macro is as follows:-
test
ActiveWorkbook.SaveAs Filename:= _
"Y:\Skip Register\Quarterly Charging Urban Vision Period" & MyQ,
Password:="", _
WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
Unfortunately, it does not insert the numeric represented by MyQ into the
file name.
Additionally, you supplied:-
'MyQ = 1 + Int(Month(DateSerial(Year(Date), Month(Date) - 1, 1)) / 4)
Can you please clarify whether the digit 4 is correct or should it be 3 to
represent quarters (i.e. every 3 months)?
And lastly, if you would be good enough to explain the above it would aid me
greatly.
Any ideas?
Many thanks
Pank
"Harald Staff" wrote:
Hi Pank
Everything inside quotes mean "literally". So end them before a variable:
"Y:\Skip Register\Quarterly Charging Period" & MyQ
HTH. Best wishes Harald
"Pank" skrev i melding
...
Harald, Bob,
Firstly many thanks for your prompt responses.
I have used Harald's solution (nothing personal Bob) and I need to know
how
to get the symbolic MyQ into the file save.
I have used "Y:\Skip Register\Quarterly Charging Period &MyQ" and it saves
it as "Y:\Skip Register\Quarterly Charging Period &MyQ". I then replaced
it
as "Y:\Skip Register\Quarterly Charging Period MyQ" and it saved it as
"Y:\Skip Register\Quarterly Charging Period MyQ"
|