Moving folders from within a VBA macro in Word 2000 
Author Message
 Moving folders from within a VBA macro in Word 2000

Dear All,

I am having difficulty writing a macro to move a folder full of files from
one network drive to another.  I'm using a VBA macro in Word 2000 on

I've tried using the filesystemobject.movefolder method and  the
folderobject.move method and both give the following result:

Run-time error '70' permission denied.

The code works fine to move folders between two drives on my local machine
("C:\" etc) but not on networked drives ("H:\") etc.  I know that I have the
relevant file permissions to the drives (I've checked share and fs level
permissions, and I can drag and drop the folders manually).

Ideally, I'd like to access these folders and files using UNC pathnames
rather than mapped drives, but I can't work out how to do this using the
filesystem object (whose only properties is the drives container and the
drives count!)

Is there another way of moving folders?  Could I maybe run a CommandPrompt
command to do it?

Any help greatly appreciated.

Tony Woodhouse

I.T. Manager - Brethertons Solicitors - England

Sat, 27 Dec 2003 00:07:42 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Moving folders from one network drive to another in Word 2000 VBA

2. Word 97 - Userform within Word VBA macro and exchange of values

3. How do you send Outlook 2000 email using WORD 97 VBA Macro

4. A question on word 2000 - VBA how to macro

5. Word 2000 modify Macro with VBA, how?

6. Running Word 2000 Macros from Other VBA Programs

7. Word 2000 modify Macro with VBA, how?

8. Automating email function within Word 2000 using Access 2000

9. Word 2000 from within VB: Windows 2000: error, Windows ME: ok

10. Macro to convert currency to words - Word 2000

11. Word 6.0 macro under word 2000

12. My Word 97 macros don't run in Word 2000


Powered by phpBB® Forum Software