Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using the MSXML library from VBA code in Excel 2007 on Windows
Vista. Everything works fine until I try to save an XML file with this code: Const MyLocation = "C:\Users\Alan\Desktop" . . . Set objDom = New DOMDocument . . . objDom.Save (MyLocation) At that last line, I get the following error: Run-time error '-2147024891 (80070005)': Access is denied Why would it not let me save a file? Thanks, Alan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I save an Excel document using saveas, I need to do something like this
myWB.SaveAs filename:="C:\abc23.xls" fileformat:=56 I'm not seeing a file name, or a fileformat in your saveas line. This page from Ron de Bruin should help http://www.rondebruin.nl/saveas.htm -- HTH, Barb Reinhardt "Alan" wrote: I am using the MSXML library from VBA code in Excel 2007 on Windows Vista. Everything works fine until I try to save an XML file with this code: Const MyLocation = "C:\Users\Alan\Desktop" . . . Set objDom = New DOMDocument . . . objDom.Save (MyLocation) At that last line, I get the following error: Run-time error '-2147024891 (80070005)': Access is denied Why would it not let me save a file? Thanks, Alan . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Barb,
Thanks, but I am saving an XML file using MSXML in Excel. I am not saving an Excel file. Alan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 - error saving file & error loading dll | Excel Discussion (Misc queries) | |||
Problems with saving a Excel file | Excel Discussion (Misc queries) | |||
Saving a file with time and date at a set time period | Excel Programming | |||
Excel 2003: Alignment problems saving workbook as prn file. | Excel Programming | |||
Problems with saving cell values to file | Excel Programming |