#1
|
|||
|
|||
Macro to apply style to selected tables
Hi,
Has someone got the code that allows you to apply a specifc table style to selected tables only. Regards Umesh Banga |
#2
|
||||
|
||||
Try this:
Code:
Sub ApplyTableStyleToSelection() Dim t As Table For Each t In Selection.Tables t.Style = "style name here" Next t End Sub
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro for tagging and rearranging selected text for revision | caotico | Word VBA | 0 | 03-28-2012 06:35 PM |
Macro Delete Selected Text | smonczka | Word VBA | 2 | 11-05-2011 03:18 AM |
Why Words doesn’t show the style of the selected words automatically???? | Jamal NUMAN | Word | 0 | 04-14-2011 03:20 PM |
Selected text and logo in one macro | marijke | Word VBA | 0 | 08-24-2009 07:01 AM |
Help with a macro to shade a selected pie chart | hzrvkt | Excel | 0 | 02-24-2006 01:25 PM |