View Single Post
 
Old 08-10-2019, 08:14 PM
SamDsouza SamDsouza is offline Windows 10 Office 2013
Advanced Beginner
 
Join Date: Aug 2019
Posts: 71
SamDsouza is on a distinguished road
Default

Hi
the atmosphere is completely new in Word Classrom then Excel Classrom. I may take time in absorbing new syntaxes for VBA word. Please excuse me.

i tried the following instead of Set objDoc = objWord.Documents.Add
Set objDoc = Documents.Open("C:\WordTrial\cmdBtnWord.docm")

Then the above also led to overwriting.

I was trying for a possibility just like in Excel usually My first worksheet will have command button to initialize the userform. So in same manner was trying

Quote:
You need to create a new document from the template containing the button.
How is the above possible and if you can kindy help with positioning of Command button on Page 1 of Created New Document .because when created
ActiveX command button on Page 1 of document. i tried moving and placing. it did not move Just like in Excel you can paste it anywhere on the worksheet

Quote:
You could use an autonew macro in the template you are creating to call the userform and that template could already have the table which is fixed in your code, so there is no need to build it.
I checked in Developer Ribbon as there was no autonew macro. If yes then where can i search and get the same on ribbon
if no then what to code in AutoNew Macro or is what i've coded and to impletement the same in Autonew Macro
Also are you meaning the same to code in Document_Open() ?


Thanks
SamD
Reply With Quote