![]() |
#1
|
|||
|
|||
![]() Code:
Sub tableau2col() ' ' tableau2col Macro ' ' Selection.ConvertToTable Separator:=wdSeparateByParagraphs, NumColumns:=1, _ NumRows:=7, AutoFitBehavior:=wdAutoFitFixed With Selection.Tables(1) If .Style <> "Table Grid" Then .Style = "Table Grid" End If .ApplyStyleHeadingRows = True .ApplyStyleLastRow = False .ApplyStyleFirstColumn = True .ApplyStyleLastColumn = False .ApplyStyleRowBands = True .ApplyStyleColumnBands = False End With Selection.Tables(1).Columns(1).SetWidth ColumnWidth:=198.2, RulerStyle:= _ wdAdjustNone Selection.SelectColumn Selection.Copy Selection.PasteAndFormat (wdPasteDefault) Selection.Font.Hidden = wdToggle End Sub Last edited by macropod; 07-16-2025 at 11:12 PM. Reason: Added code tags for code formatting |
#2
|
||||
|
||||
![]()
Simply telling us "VBA macro doesn’t work anymore in Word" with no context as to what aspect isn't working is singularly unhelpful. Please be more specific.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Previously functional code doesn't work properly anymore | 68Monkey | Word VBA | 3 | 09-25-2018 06:08 PM |
Spell check macro within macro button field doesn't work in one document | samuelle | Word VBA | 0 | 07-20-2016 02:27 AM |
Word for Mac doesn't open quickly anymore | Neil Turkington | Word | 0 | 02-16-2016 09:19 AM |
Excel, Word, PowerPoint, Outlook does work anymore | Henk52 | Office | 4 | 09-08-2015 06:14 PM |
![]() |
Gardener | Word | 12 | 12-31-2011 06:23 AM |