Here is the code that I copied over to use in a new macro. It works where it was orignal created, but I get the out of script range. What am I missing? Line located at the --->.
Next
'Save Back up file
'Set active sheet as a workbook
'file location = workbooks ("Project Internet Buys - Nick").Sheets("campaign").Range("E2")
fileLocation = Sheets("campaign").Range("E2")
ChDrive "S" 'Change to the S-Drive
ChDir "S:\"
------> Sheets(Destsh).Select
Fname = InputBox("What do you want to name the file? (The date will be added automatically to the name.", "File Name")
DateHold = Date$
'Timehold = Times$
Fname2 = Fname + "" + DateHold
ActiveSheet.Copy
ActiveWorkbook.SaveAs Filename:=Fname2 & ".xls"
ActiveWorkbook.Close SaveChanges:=False
'Display saved message
strMessage = Fname2 & "savid in" & vbCrLf & vbCrLf & CurDir
MsgBox strMessage, vbInformation, "File Saved! Have a Super Day."""
'Turn on Screen Updating
Application.screeupdating = True
Next
'Save Back up file
'Set active sheet as a workbook
'file location = workbooks ("Project Internet Buys - Nick").Sheets("campaign").Range("E2")
fileLocation = Sheets("campaign").Range("E2")
ChDrive "S" 'Change to the S-Drive
ChDir "S:\"
------> Sheets(Destsh).Select
Fname = InputBox("What do you want to name the file? (The date will be added automatically to the name.", "File Name")
DateHold = Date$
'Timehold = Times$
Fname2 = Fname + "" + DateHold
ActiveSheet.Copy
ActiveWorkbook.SaveAs Filename:=Fname2 & ".xls"
ActiveWorkbook.Close SaveChanges:=False
'Display saved message
strMessage = Fname2 & "savid in" & vbCrLf & vbCrLf & CurDir
MsgBox strMessage, vbInformation, "File Saved! Have a Super Day."""
'Turn on Screen Updating
Application.screeupdating = True