Downgraded to Excel 2007

MikeDBMan

Well-known Member
Joined
Nov 10, 2010
Messages
610
I had to be downgraded from Excel 2010 to Excel 2007. Now I am having problems that I had solved months ago. I issue this line of code and I get an error 1004 when trying to open a file on SharePoint:


I can still manually open this file within excel but not using VBA.
Using VBA, I now get an error 1004. The file does not open. Suggestions?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I guess you could try using the real file name with spaces instead of %20:
Code:
Workbooks.Open "https://blah blah blah.xlsx"
Rather than
Code:
Workbooks.Open "https://blah%20blah%20blah.xlsx"

Just a guess. Or you could test it by removing the spaces from the file on sharepoint (if you are able) and see if that helps.

ξ
 
Upvote 0
That is not it. There is something else going on that I don't know about that is causing the problem. I actually get the same error message regardless of if I use %20 or a space. I think there is a security issue that happens automatically when I open a file manually but I am not emulating with VBA code.
 
Upvote 0
Weirdest thing. I rebooted and now I can open any files. Again I think there is a security issue but whatever it is, the reboot satisfied. We'll see...
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,812
Members
452,945
Latest member
Bib195

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top