Hi again,
With the help of RobBroekhuis I fixed my last problem concerning the user form.
Another problem I am having is that i have created a part of the worksheet which opens a new sheet, copies some data accross and saves it as "report1202" for example (i.e. report then mmyy) That works fine but I can't work out and i'm not sure what the code is to make it save this in the same folder as the original worksheet.
I've tried curDir but that only puts it into the last folder that I was in. Also.. I'm not sure where in the code to put that piece of code. The code that i already have for that operation is..
ActiveWorkbook.SaveAs Filename:= _
"Report" & Format(Now(), "mmyy"
, FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
Any help would be appreciated.
Tom
With the help of RobBroekhuis I fixed my last problem concerning the user form.
Another problem I am having is that i have created a part of the worksheet which opens a new sheet, copies some data accross and saves it as "report1202" for example (i.e. report then mmyy) That works fine but I can't work out and i'm not sure what the code is to make it save this in the same folder as the original worksheet.
I've tried curDir but that only puts it into the last folder that I was in. Also.. I'm not sure where in the code to put that piece of code. The code that i already have for that operation is..
ActiveWorkbook.SaveAs Filename:= _
"Report" & Format(Now(), "mmyy"
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
Any help would be appreciated.
Tom