![]() |
#1
|
|||
|
|||
![]()
I have a inhereted a macro that inserts a table if it is needed and checks after doing so if the table style is OK.
It fails sometimes, namely when the table is inserted. It appears that an error is raised on these lines: Code:
With Selection.Tables(1) If .style <> "Tabelraster" Then .style = "Tabelraster" End If End With I need to fix this situation and I want to understand what option I have to repair this.
Ruud I have changed the above code to Code:
With Selection.Tables(1) Dim insLan insLan = Application.LanguageSettings.LanguageID(msoLanguageIDUI) If .style <> "Tabelraster" And .style <> "Table Grid" Then If (insLan = 1033) Then ' English .style = "Table Grid" else ' Dutch .style = "Tabelraster" End If End If End With |
Tags |
language, style language |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Having Difficulty Changing the Default Language and Spell Check Language | JimG35 | PowerPoint | 0 | 10-30-2020 04:41 PM |
![]() |
alsw | Office | 3 | 02-26-2018 08:49 PM |
Macro to change language and untick 'do not check spelling' | William E | PowerPoint | 2 | 05-13-2017 01:47 PM |
![]() |
dejanm83 | Word VBA | 3 | 03-19-2017 02:36 PM |
install new interface language | shmu | Office | 4 | 09-21-2014 02:43 AM |