Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saveas Error (attempt 2)
I have the following bit of code that normally works, but lately I'm getting
errors on the SaveAs line. It's completely kicking me out of excel. aWBname = aWB.Name aWBname = oWB.Path & "\" & aWBname 'Didn't have this line originally and it worked Application.DisplayAlerts = False aWB.Close savechanges:=False oWB.SaveAs Filename:=aWBname Application.DisplayAlerts = True oWB.Close Does anyone have any idea why I might be having these problems? Sometimes it works and sometimes it doesn't. Thanks, Barb Reinhardt |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saveas Error (attempt 2)
It appears that copying worksheets from aWB to oWB caused this problem
somehow. WHen I moved them, I had no error. I believe the workbooks with issues had links from one sheet to another. Barb Reinhardt "Barb Reinhardt" wrote: I have the following bit of code that normally works, but lately I'm getting errors on the SaveAs line. It's completely kicking me out of excel. aWBname = aWB.Name aWBname = oWB.Path & "\" & aWBname 'Didn't have this line originally and it worked Application.DisplayAlerts = False aWB.Close savechanges:=False oWB.SaveAs Filename:=aWBname Application.DisplayAlerts = True oWB.Close Does anyone have any idea why I might be having these problems? Sometimes it works and sometimes it doesn't. Thanks, Barb Reinhardt |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Saveas error | Excel Programming | |||
error with saveas.... | Excel Programming | |||
Error Handling an attempt to change a protected cell | Excel Programming | |||
error in attempt to warn about macro security | Excel Programming | |||
need an error msge when I attempt to enter a duplicate value in a | Excel Discussion (Misc queries) |