B
Brian
I think that I should be able to bypass an Autpen macro by holding down
Shift while opening the workbook. However, I have this Autpen macro:
Sub Autpen()
Workbooks.Open FileName:="C:\MyFile.xls"
Rows("1:14").Select
Selection.Delete Shift:=xlUp
Selection.End(xlDown).Select
ActiveCell.EntireRow.Delete
Selection.End(xlUp).Select
ActiveCell.EntireRow.Delete
Range("A1").Select
ActiveWorkbook.SaveAs FileName:="C:\MyFile2.xls", FileFormat:=xlNormal,
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:=False
ActiveWindow.Close
'close Excel
Application.Quit
End Sub
Even when I hold down Shift, the macro runs the first line:
Workbooks.Open FileName:="C:\MyFile.xls"
How can I keep it from running even this much when I open the workbook
having the macro in it?
Shift while opening the workbook. However, I have this Autpen macro:
Sub Autpen()
Workbooks.Open FileName:="C:\MyFile.xls"
Rows("1:14").Select
Selection.Delete Shift:=xlUp
Selection.End(xlDown).Select
ActiveCell.EntireRow.Delete
Selection.End(xlUp).Select
ActiveCell.EntireRow.Delete
Range("A1").Select
ActiveWorkbook.SaveAs FileName:="C:\MyFile2.xls", FileFormat:=xlNormal,
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:=False
ActiveWindow.Close
'close Excel
Application.Quit
End Sub
Even when I hold down Shift, the macro runs the first line:
Workbooks.Open FileName:="C:\MyFile.xls"
How can I keep it from running even this much when I open the workbook
having the macro in it?