Hi
Part of my routine uses Save As to open a dialog box at the folder "overtime files" so that the user can name and save the workbook.
I've looked around and come up with the following:
Sub Otime_SaveFile()
Dim varResult As Variant
ChDrive "C"
ChDir "C:\Documents\Overtime Files\"
varResult = Application.GetSaveAsFileName( _
FileFilter:="Excel Files (*.xlsx), *.xlsx")
End Sub
There are a number of sub-folders in Overtime Files, one for each month, named as such:
01 - January
02 - February
etc (so that they're always in order) and in each of those files are more sub-folders, one of which is called NHE.
What I'd like to do is for Excel to go to the NHE file for the current month. So for it to know that it's August and go to the August folder.
Is that possible?
thank you for helping
____________
Pendle
Part of my routine uses Save As to open a dialog box at the folder "overtime files" so that the user can name and save the workbook.
I've looked around and come up with the following:
Sub Otime_SaveFile()
Dim varResult As Variant
ChDrive "C"
ChDir "C:\Documents\Overtime Files\"
varResult = Application.GetSaveAsFileName( _
FileFilter:="Excel Files (*.xlsx), *.xlsx")
End Sub
There are a number of sub-folders in Overtime Files, one for each month, named as such:
01 - January
02 - February
etc (so that they're always in order) and in each of those files are more sub-folders, one of which is called NHE.
What I'd like to do is for Excel to go to the NHE file for the current month. So for it to know that it's August and go to the August folder.
Is that possible?
thank you for helping
____________
Pendle