-
WSfrankpasztor
AskWoody LoungerI guess this response falls into the whatever category.
The attachment is a Word doc that carries a module that ‘colours’ documents. The background of it was a conversion /translation utility that
cycled thro’ a docs paragraphs and changed the background color. This resulted in a starting document that was evenly coloured.As the translator ran it again cycled through the doc para by para, a successful conversion reset the paras color to auto, errors where then represented
by other colors. The end result was a document where process used/failed/success where all clearly visible. This allowed users to carry out conversions
over a number of sessions.And all without having to generate INI files to keep track of everything. Anyway, this module has a test sub that I hope is pretty self explanitory.
It can either shade paras that contain a specified style or Not, It then has another function that carries out some action based on a paras colour. -
WSfrankpasztor
AskWoody LoungerAs far as I know
Word only allows a continuous(unbroken) range to be selected.
If thats correct then there can’t be anyway to select all instances of a style, becouse the first break (other style) would break the selection.A work around would be messy, you would have to step through all paragraphs bookmarking( or entering into an array, etc) any paragraph
that was of interest. Maybe changing font /shading colour to highlight the paragraphs. -
WSfrankpasztor
AskWoody LoungerAs far as I know
Word only allows a continuous(unbroken) range to be selected.
If thats correct then there can’t be anyway to select all instances of a style, becouse the first break (other style) would break the selection.A work around would be messy, you would have to step through all paragraphs bookmarking( or entering into an array, etc) any paragraph
that was of interest. Maybe changing font /shading colour to highlight the paragraphs. -
WSfrankpasztor
AskWoody LoungerSeptember 15, 2004 at 9:14 pm in reply to: Calling a procedure in a module from a user form (Word 2003 VBA) #877683oops
I forgot to attach the Word Doc sorry …
-
WSfrankpasztor
AskWoody LoungerSeptember 15, 2004 at 9:14 pm in reply to: Calling a procedure in a module from a user form (Word 2003 VBA) #877684oops
I forgot to attach the Word Doc sorry …
-
WSfrankpasztor
AskWoody LoungerSeptember 15, 2004 at 9:10 pm in reply to: Calling a procedure in a module from a user form (Word 2003 VBA) #877679I got it to work in Word 2003 by;
In the form itself I used a commandbutton to launch it, and initialized objForm =MePublic objForm As Object
Public Sub CommandButton1_Click()
Me.txtInitials.Text = Module1.PopInitials(objForm.cboAuthor)
End SubIn the Module, I made PopInitials a Public Function, passing it the Value of the combobox
and returning the Initials to the calling routine.Public Function PopInitials(objForm As Object) As String
…
sName = objFormI’m afraid that I’d never bothered passing a form’s name to a sub so I can’t comment
on why its no longer working. I’ve attached the working example -
WSfrankpasztor
AskWoody LoungerSeptember 15, 2004 at 9:10 pm in reply to: Calling a procedure in a module from a user form (Word 2003 VBA) #877680I got it to work in Word 2003 by;
In the form itself I used a commandbutton to launch it, and initialized objForm =MePublic objForm As Object
Public Sub CommandButton1_Click()
Me.txtInitials.Text = Module1.PopInitials(objForm.cboAuthor)
End SubIn the Module, I made PopInitials a Public Function, passing it the Value of the combobox
and returning the Initials to the calling routine.Public Function PopInitials(objForm As Object) As String
…
sName = objFormI’m afraid that I’d never bothered passing a form’s name to a sub so I can’t comment
on why its no longer working. I’ve attached the working example -
WSfrankpasztor
AskWoody LoungerWhat about using a button to toggle the state.
For example;
First press Checks a custom property if its ON or non-existant then create it and give it an ON value
This coincides with the quotation marks/italics.Next press toggles this custom property to OFF … etc
-
WSfrankpasztor
AskWoody LoungerWhat about using a button to toggle the state.
For example;
First press Checks a custom property if its ON or non-existant then create it and give it an ON value
This coincides with the quotation marks/italics.Next press toggles this custom property to OFF … etc
-
WSfrankpasztor
AskWoody LoungerJust to add a thought to this post,
In “Word for Dummies” terms, this is nice and ‘elegant’, but maybe a bit short on explaination.
the line CheckBox1.Visible = (strChoice = “One”) means
that IF the user selects the word “One” then (strChoice = “One”) is TRUE
if the user chooses anything else then (strChoice = “One”) is FALSECheckBox1.Visible decides whether you can see the CheckBox (TRUE) or not (FALSE)
-
WSfrankpasztor
AskWoody LoungerJust to add a thought to this post,
In “Word for Dummies” terms, this is nice and ‘elegant’, but maybe a bit short on explaination.
the line CheckBox1.Visible = (strChoice = “One”) means
that IF the user selects the word “One” then (strChoice = “One”) is TRUE
if the user chooses anything else then (strChoice = “One”) is FALSECheckBox1.Visible decides whether you can see the CheckBox (TRUE) or not (FALSE)
-
WSfrankpasztor
AskWoody LoungerThats not an uncommon attitude for a user to take. I’ve found that nothing annoys a user more than a button that doesn’t appear to do anything.
At least if they can see something happening they’ll (hopefully) abstain from bashing the keyboard unnecessarily.When I run macros that ‘move’ my insertion point I first bookmark the current position, I use the
same bookmark name in all macros that need this abilityActiveDocument.Bookmarks.Add Range:=Selection.Range, Name:=”StartedHere”
…… here’s the actual running code …..When the working code has completed its task I use goto to return to my original position
Selection.GoTo What:=wdGoToBookmark, Name:=”StartedHere” -
WSfrankpasztor
AskWoody LoungerThats not an uncommon attitude for a user to take. I’ve found that nothing annoys a user more than a button that doesn’t appear to do anything.
At least if they can see something happening they’ll (hopefully) abstain from bashing the keyboard unnecessarily.When I run macros that ‘move’ my insertion point I first bookmark the current position, I use the
same bookmark name in all macros that need this abilityActiveDocument.Bookmarks.Add Range:=Selection.Range, Name:=”StartedHere”
…… here’s the actual running code …..When the working code has completed its task I use goto to return to my original position
Selection.GoTo What:=wdGoToBookmark, Name:=”StartedHere” -
WSfrankpasztor
AskWoody LoungerGreetings,
Firstly I agree completely with your views on avoiding the inbuilt Heading styles and either start from no style, or a specifically created inhouse base style.If you have documents that now contain paragraphs with the same paragraph style name but use different fonts/formatting then try doing a global find/replace.
This should replace all instances with the style stored in your own template. I say should becouse any numbered styles are likely to misbehave so back up your
docs before doing anything you might later regret. -
WSfrankpasztor
AskWoody LoungerGreetings,
Firstly I agree completely with your views on avoiding the inbuilt Heading styles and either start from no style, or a specifically created inhouse base style.If you have documents that now contain paragraphs with the same paragraph style name but use different fonts/formatting then try doing a global find/replace.
This should replace all instances with the style stored in your own template. I say should becouse any numbered styles are likely to misbehave so back up your
docs before doing anything you might later regret.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Cyberattack on Washington Post Strikes Journalists’ Email Accounts
by
Alex5723
22 minutes ago -
June KB5060842 update broke DHCP server service
by
Alex5723
31 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
37 minutes ago -
Excessive security alerts
by
WSSebastian42
30 minutes ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
10 hours, 5 minutes ago -
Ben’s excellent adventure with Linux
by
Ben Myers
16 minutes ago -
Seconds are back in Windows 10!
by
Susan Bradley
1 hour, 57 minutes ago -
WebBrowserPassView — Take inventory of your stored passwords
by
Deanna McElveen
7 hours, 8 minutes ago -
OS news from WWDC 2025
by
Will Fastie
11 hours, 19 minutes ago -
Need help with graphics…
by
WSBatBytes
2 hours, 48 minutes ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
1 day, 1 hour ago -
Totally remove or disable BitLocker
by
CWBillow
41 minutes ago -
Windows 10 gets 6 years of ESU?
by
n0ads
3 hours, 56 minutes ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
1 day, 12 hours ago -
Search Forums only bring up my posts?
by
Deo
1 day, 12 hours ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
2 days ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
1 day, 16 hours ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
2 days ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
2 days, 10 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
2 days, 11 hours ago -
Disengage Bitlocker
by
CWBillow
2 days, 1 hour ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
2 days, 13 hours ago -
New Win 11 Pro Geekom Setup questions
by
Deo
1 day, 12 hours ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
2 days, 21 hours ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
2 days, 21 hours ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
3 days, 1 hour ago -
New PC transfer program recommendations?
by
DaveBoston
1 day, 5 hours ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
3 days, 5 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
3 days, 5 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
2 days, 17 hours ago
Recent blog posts
- Ben’s excellent adventure with Linux
- Seconds are back in Windows 10!
- WebBrowserPassView — Take inventory of your stored passwords
- OS news from WWDC 2025
- Best tools for upgrading a Windows 10 to an 11
- Master patch listing for June 10, 2025
- 24H2 may not be offered June updates
- June 2025 updates are out
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.