Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2020, 05:05 AM
TechWriter TechWriter is offline Assign macro to word style Windows 7 64bit Assign macro to word style Office 2013
Novice
Assign macro to word style
 
Join Date: Aug 2017
Posts: 7
TechWriter is on a distinguished road
Default Assign macro to word style


In Microsoft word can we assign a macro to the style. Example automatically creating and inserting a table in the document using style (not keyboard shortcut or button)
Reply With Quote
  #2  
Old 01-07-2020, 07:55 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Assign macro to word style Windows 10 Assign macro to word style Office 2019
Moderator
 
Join Date: Aug 2011
Posts: 3,437
Stefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of light
Default

If the table should include predefined content, you could create it as an AutoText entry, for easy reuse.
__________________
Stefan Blom
Microsoft Word MVP

Last edited by Stefan Blom; 01-07-2020 at 01:46 PM.
Reply With Quote
  #3  
Old 01-07-2020, 09:42 AM
Charles Kenyon Charles Kenyon is online now Assign macro to word style Windows 10 Assign macro to word style Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 6,985
Charles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to beholdCharles Kenyon is a splendid one to behold
Default

Or a Quick Table (another kind of Building Block) that Shows up under Insert Table.


Why do you want a macro? What will having the macro do that cannot be done using existing features?
(This is sort of like asking to create a macro to make text bold.)
Reply With Quote
  #4  
Old 01-07-2020, 05:01 PM
macropod's Avatar
macropod macropod is online now Assign macro to word style Windows 7 64bit Assign macro to word style Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,558
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

Quote:
Originally Posted by TechWriter View Post
In Microsoft word can we assign a macro to the style.
In a word, No.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you assign a macro to a button in Word? smog32 Word VBA 2 06-25-2019 01:42 AM
Assign macro to word style Word macro - remove shading from active para. and assign language to it, keep text cursor position dejanm83 Word VBA 3 03-19-2017 02:36 PM
Assign macro to word style Automatically assign style to inline citation tfa91 Word 2 02-03-2016 02:35 PM
Assign Macro to Shape in Word 2013 tunes10590 Word VBA 8 01-29-2015 06:26 AM
How do I assign a macro to a button when the macro is in my personal workbook? foolios Excel Programming 2 07-27-2011 02:41 PM

Other Forums: Access Forums - Senior Forums

All times are GMT -7. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft