Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2012, 02:54 AM
shreked shreked is offline can I run a macro when I open a specific doc. Windows Vista can I run a macro when I open a specific doc. Office 2007
Novice
can I run a macro when I open a specific doc.
 
Join Date: Jan 2012
Posts: 10
shreked is on a distinguished road
Default

Thats brill. One other little thing. How do I run a 2nd macro automatically once this ones run.

Private Sub Document_Open()
Dim StrFold As String
With Application
MsgBox "Please choose the template that applies"
StrFold = .Options.DefaultFilePath(wdDocumentsPath)
With .Dialogs(wdDialogFileOpen)


.Name = "\\cr-na2\users\glennm\test \"
.Show
End With

.ChangeFileOpenDirectory StrFold
End Sub
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
can I run a macro when I open a specific doc. Macro for highlighting specific number of words icsjohn Word VBA 2 12-07-2011 06:44 PM
can I run a macro when I open a specific doc. Need help extracting specific text from one doument to another with macro/VBA. zsmithku Word 1 04-15-2011 03:46 PM
Macro request: open on event infotech Outlook 0 12-08-2010 06:40 PM
Macro to open template not working Brandi Mail Merge 2 06-24-2010 09:29 AM
Word attachment on an E-mail-macro to open attachment & nablady Outlook 0 11-28-2006 03:00 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft