A
adam.mjbarnes
I am trying to make a macro that highlights any style that is not in my
list (styles and formatting) menu, I only have about 20 styles, I am
very new to macros, and using word 2003, I need it to work in word 2000
as well, is this possible.
I have tried ti follow this
http://groups.google.co.uk/group/mi...o+to+check+styles&rnum=2#6b4131438789f8aa"
with not much luck, I changed this bit to my style names:
Private Function FillOfficialStyleList() As Integer
' This routine could be changed to read the list
' of names from a text file, which could be easily
' updated without needing to change the code.
OfficialStyleList(0) = "Ahead"
OfficialStyleList(1) = "Bhead"
OfficialStyleList(2) = "Chead"
OfficialStyleList(3) = "MainText"
OfficialStyleList(4) = "bold"
OfficialStyleList(5) = "italic"
OfficialStyleList(6) = "Header"
OfficialStyleList(7) = "Footer"
FillOfficialStyleList = 7
End Function
But it highlighted all the text including my styles?
Any help would be fantastic!
list (styles and formatting) menu, I only have about 20 styles, I am
very new to macros, and using word 2003, I need it to work in word 2000
as well, is this possible.
I have tried ti follow this
http://groups.google.co.uk/group/mi...o+to+check+styles&rnum=2#6b4131438789f8aa"
with not much luck, I changed this bit to my style names:
Private Function FillOfficialStyleList() As Integer
' This routine could be changed to read the list
' of names from a text file, which could be easily
' updated without needing to change the code.
OfficialStyleList(0) = "Ahead"
OfficialStyleList(1) = "Bhead"
OfficialStyleList(2) = "Chead"
OfficialStyleList(3) = "MainText"
OfficialStyleList(4) = "bold"
OfficialStyleList(5) = "italic"
OfficialStyleList(6) = "Header"
OfficialStyleList(7) = "Footer"
FillOfficialStyleList = 7
End Function
But it highlighted all the text including my styles?
Any help would be fantastic!