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,871
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

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

Microsoft 365 apps for business
Windows 11 Professional

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 offline Assign macro to word style Windows 10 Assign macro to word style Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,081
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
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 offline 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: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
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

All times are GMT -7. The time now is 10:00 AM.


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