Trevor3007
Well-known Member
- Joined
- Jan 26, 2017
- Messages
- 675
- Office Version
- 365
- Platform
- Windows
hi,
The code below worked fine until I added the line (text in red)
which produced the debug error (please click on line to display)
https://www.amazon.co.uk/clouddrive/share/SdCuatmx0DKIJygRc9OmI3vcvgwot4aPLipNQoDm3r5
can some one resolve for me?
KR
Trevor
The code below worked fine until I added the line (text in red)
Code:
Sub savetab()
If MsgBox("Do you want to save as a MACRO embedded workbook?", vbYesNo) = vbYes Then
ActiveWorkbook.SaveAs "C:\Users\data1" & Application.PathSeparator & ActiveWorkbook.Sheets(1).Name & ".xlsm", 52
Else
[COLOR=#ff0000]If MsgBox("Do you want to save as a MACRO embedded workbook?", vbYesNo) = vbYes Then[/COLOR]
ActiveWorkbook.SaveAs "C:\Users\data2" & Application.PathSeparator & ActiveWorkbook.Sheets(1).Name & ".xls", 56
End If
End Sub
which produced the debug error (please click on line to display)
https://www.amazon.co.uk/clouddrive/share/SdCuatmx0DKIJygRc9OmI3vcvgwot4aPLipNQoDm3r5
can some one resolve for me?
KR
Trevor