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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,223,663
Messages
6,173,649
Members
452,525
Latest member
DPOLKADOT

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