Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 22 Jul 2008 21:05:27 +0800,    group: microsoft.public.word.word6-7macros        back       


Run macro on word document   
Hi,

I have created a macro which takes parameters and the file is saved as .dot 

into the folder. C:\Documents and Settings\username\Application 
Data\Microsoft\Word\STARTUP.

Now i need to run this macro passing the parameters when i open word 
document.

I followed the below command. I put some word doc in C:/temp and executed 
this command "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" 
C:/temp/Temp.doc /minsertCustomComboBox.

insertCustomComboBox is my macroname. After executing the command just the 
word file opened. i dont think macro was run. i need to pass parameters also.

 Please could you suggest on this.

url:http://www.ureader.com/gp/1025-1.aspx
date: Tue, 22 Jul 2008 21:05:27 +0800   author:   kiran kumar

Re: Run macro on word document   
Perhaps if you tell us exactly what you want to do (rather than a very 
sketchy version of how you have gone about it) we might be able to provide 
some assistance.

-- 
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"kiran kumar"  wrote in message 
news:c17fc7e74782409cb91e326b01858057@newspe.com...
> Hi,
>
> I have created a macro which takes parameters and the file is saved as 
> .dot
>
> into the folder. C:\Documents and Settings\username\Application
> Data\Microsoft\Word\STARTUP.
>
> Now i need to run this macro passing the parameters when i open word
> document.
>
> I followed the below command. I put some word doc in C:/temp and executed
> this command "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE"
> C:/temp/Temp.doc /minsertCustomComboBox.
>
> insertCustomComboBox is my macroname. After executing the command just the
> word file opened. i dont think macro was run. i need to pass parameters 
> also.
>
> Please could you suggest on this.
>
> url:http://www.ureader.com/gp/1025-1.aspx
date: Wed, 23 Jul 2008 05:39:07 +1000   author:   Doug Robbins - Word MVP

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us