bsharath
asked on
Cut paste multiple folders in Outlook. Any script that can help moving multiple folders in one shot.
Hi,
Cut paste multiple folders in Outlook. Any script that can help moving multiple folders in one shot.
I have a very large no of folders in my outlook in multiple pst's . Now when i need to move (Cut) and paste a few folders from one pst to another .It becomes very difficult. is there any way to select multiple folders and right click cut and paste in the desired path.
Regards
Sharath
Cut paste multiple folders in Outlook. Any script that can help moving multiple folders in one shot.
I have a very large no of folders in my outlook in multiple pst's . Now when i need to move (Cut) and paste a few folders from one pst to another .It becomes very difficult. is there any way to select multiple folders and right click cut and paste in the desired path.
Regards
Sharath
This is part 2 of 3.
Follow these instructions for this part.
1. Start Outlook
2. Click Tools > Macro > Visual Basic Editor
3. If not already expanded, expand Microsoft Office Outlook Objects and click on Module1
4. Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window
5. Edit the code as needed. I included comments wherever something needs to or can change
6. Click the diskette icon on the toolbar to save the changes
7. Close the VB Editor
Follow these instructions for this part.
1. Start Outlook
2. Click Tools > Macro > Visual Basic Editor
3. If not already expanded, expand Microsoft Office Outlook Objects and click on Module1
4. Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window
5. Edit the code as needed. I included comments wherever something needs to or can change
6. Click the diskette icon on the toolbar to save the changes
7. Close the VB Editor
Sub MoveMultipleFolders()
Dim objMFM As New MultiFolderMover
With objMFM
.SelectSource
.SelectDestination
.Move
End With
Set objMFM = Nothing
End Sub
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks a lot David...
I get this
-------------------------- -
Microsoft Visual Basic
-------------------------- -
Compile error:
Expected user-defined type, not project
-------------------------- -
OK Help
-------------------------- -
I get this
--------------------------
Microsoft Visual Basic
--------------------------
Compile error:
Expected user-defined type, not project
--------------------------
OK Help
--------------------------
ASKER
Thanks a lot David...
I get this
-------------------------- -
Microsoft Visual Basic
-------------------------- -
Compile error:
Expected user-defined type, not project
-------------------------- -
OK Help
-------------------------- -
I get this
--------------------------
Microsoft Visual Basic
--------------------------
Compile error:
Expected user-defined type, not project
--------------------------
OK Help
--------------------------
Where does the error occur?
ASKER
When i run the macro i get the above error and this line shows as selected.
Dim objMFM As New MultiFolderMover
Dim objMFM As New MultiFolderMover
Did you follow all of the instructions in part 1 exactly? If so, the you should have a class module named MultiFolderMover. The error suggests that there is no such class module.
ASKER
Ok i could not name the class i get this
-------------------------- -
Microsoft Visual Basic
-------------------------- -
Name conflicts with existing module, project, or object library
-------------------------- -
OK Help
-------------------------- -
So i named the name as project name
I searched all but did not find a similar "MultiFolderMover"
--------------------------
Microsoft Visual Basic
--------------------------
Name conflicts with existing module, project, or object library
--------------------------
OK Help
--------------------------
So i named the name as project name
I searched all but did not find a similar "MultiFolderMover"
Did you create a code module named MultiFolderMover? If so, then that's the problem.
ASKER
Thanks a lot David that was one Awesome Form... :-))
ASKER
Thanks, and you're welcome. I'll take a look at the other question.
I have a solution for this. That solution comes in three parts. This is part 1 of 3.
Follow these instructions to use this.
1. Start Outlook
2. Click Tools > Macro > Visual Basic Editor
3. If not already expanded, expand Microsoft Office Outlook Objects
4. Right-click on Class Modules, select Insert > Class Module
5. In the Properties panel click on Name and enter MultiFolderMover
6. Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window
7. Edit the code as needed. I included comments wherever something needs to or can change
8. Click the diskette icon on the toolbar to save the changes
9. Close the VB Editor
Open in new window