Ho do I insert a field based on a VB Macro?

B

Brian Ferguson

Hi All,
I need to calculate the current week's ending date (Friday in my case). I
have written a VBA macro that will return the correct value, but how to I
call the macro from a word document?

Thanks
Brian
 
J

Jonathan West

Brian Ferguson said:
Hi All,
I need to calculate the current week's ending date (Friday in my case). I
have written a VBA macro that will return the correct value, but how to I
call the macro from a word document?

Thanks
Brian

Word doesn't offer a field that automatically inserts the return value of a
VBA function.
You can create a keyboard shortcut or a toolbar button that will call a
macro. Take a look at the Customize dialog on the Tools menu.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
B

Brian Ferguson

Jonathan,
Thanks for your rapid response. I'll try your suggestion.

Thanks
Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top