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
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