1004 error - excel cannot find C: etc

stevebrodie

New Member
Joined
Jan 11, 2011
Messages
17
Hi All,

I have a macro that opens a file from a server (using dll from Remedy Action request system). User clicks a button to import data and sort, then clicks a further button to email report out to collegues. This works on all the PC's in the office (running 2007 or 2010) EXCEPT for one ! The user gets the following message;

Microsoft Excel cannot access the file
'C:\progra~\micros~2\office14\'. There are several possible reasons: etc,etc

I have checked the excel folder is in the right place, he has access rights to the C Drive and i am using the With OutMail command in VBA.

The only thing different with his pc is that he had his profile reset so has two 'My Documents' Folders - one on his C Drive and the other stored in the usual place C:\Documents and Settings\*PROFILE*\My Documents . I have renamed the folder on his C drive to My Documents1 but still get same error message - do i need to change something else or restart his laptop?

He needs to send out this report nightly to higher management, so any help would be very much appreciated.

Best Regards

Steve
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I have used this User Defined Function to get the system to find this type of thing in the past,,, Maybe you could use it (in some way).. Good luck..

Code:
Public Function MyDocsPath() As String
    MyDocsPath = Environ$("USERPROFILE") & "\Documents\"
End Function
 
Upvote 0

Forum statistics

Threads
1,203,044
Messages
6,053,186
Members
444,644
Latest member
keepontruckinc4

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