MS Word VBA

jakobt

Active Member
Joined
May 31, 2010
Messages
337
Have a MS Word document.

Have a template saved on S:/mstemplate.docx
With a copied range.
I want to make a macro
So the copied range is always copied to the currently open word document at the current selected cell.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Have a template saved on S:/mstemplate.docx
That is not a Word template; it is a Word document.
With a copied range.
Unless you have opened the document and copied something from it, nothing has been copied to the clipboard; nothing is even selected.
I want to make a macro
So the copied range is always copied to the currently open word document at the current selected cell.
When you open a document, there is no 'current selected cell'. In any event, you don't need a macro; if you've copied something to the clipboard, just select the cel and paste there (e.g. via Ctrl-V).
 
Upvote 0
Of course I know the Ctrl + V command. The idea is to have a document on my drive. I will then create macro to copy in several small pieces from this template - when I work with other word documents. It is tiring openening up the docs...but in general I want to create macros for a lot of standard routines.
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,721
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top