I intend to populate a combobox upon loading (or initialisation) of a certain user form with the .AddItem method of the box control. Now, the initial list of possible options will be saved with the project but the user should be able to add new entries for future use. In order to prevent that those entries be lost the next time the project is started I need to save them to the actual project through the VBE. Now….how is it done?. Thanks in advance.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Using the VBE (Word 97)
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Using the VBE (Word 97)
- This topic has 7 replies, 5 voices, and was last updated 22 years, 9 months ago.
AuthorTopicWSmilonguero
AskWoody LoungerSeptember 11, 2002 at 11:31 am #376327Viewing 1 reply threadAuthorReplies-
WSVBNerd
AskWoody LoungerSeptember 11, 2002 at 12:57 pm #615898 -
WSHoward Kaikow
AskWoody LoungerSeptember 11, 2002 at 3:17 pm #615945It’s possible to modify the code, but that’s the wrong way to do this.
If one needs to change the content of lists or combo boxes or, whatever, based on user input, and then have those values available for future use, the right way is to initialize such controls by grabbing input from database, ini files, Word template, Registry.
-
WSStuartR
AskWoody Lounger-
WSmilonguero
AskWoody LoungerSeptember 11, 2002 at 4:27 pm #615963The way I see it…it should not be neither PC nor application specific. Once you set up a reference to the Extensibility library, you have access to the actual code through code (go figure…). Saving extra entries to that combobox should be just as easy and usual as saving, for example color settings… . Reading data off an external file could work but still implies opening, reading and closing via automation, a real overkill if any. I’m positive about the use of VBE ..all I need to know is how to implement it…
Thanks again. -
WSSammyB
AskWoody LoungerSeptember 11, 2002 at 5:00 pm #615974You REALLY do not want to do this, but it is fun & frustrating to learn. If you insist, the place to start is Chip Pearson’s Programming to the VBE. Yes, I know, this stuff is for Excel, but it is pretty easy to translate: just change ThisWorkbook to ThisDocument and I think that the rest is the same. After trying Chip’s stuff, you are really on your own. I’ve not seen much other useful material.
BUT, what you really want to do is what Stuart suggested, just store the combo box entries as CustomDocumentProperties. If you do a search on the lounge, you will find some sample code. HTH –Sam
-
WSmilonguero
AskWoody Lounger -
WSSammyB
AskWoody Lounger
-
-
-
Viewing 1 reply thread -

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
-
Frustrating search behavior with Outlook
by
MrJimPhelps
13 minutes ago -
June 2025 Office non-Security Updates
by
PKCano
3 hours, 26 minutes ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
31 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
3 hours, 22 minutes ago -
How start headers and page numbers on page 3?
by
Davidhs
13 hours, 46 minutes ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
8 hours, 21 minutes ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
22 hours, 27 minutes ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
22 hours, 29 minutes ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
12 hours, 10 minutes ago -
Firefox 139
by
Charlie
4 hours, 45 minutes ago -
Who knows what?
by
Will Fastie
34 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
23 hours, 12 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
17 hours, 36 minutes ago -
Misbehaving devices
by
Susan Bradley
1 day, 1 hour ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
2 days, 5 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
2 hours, 29 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
2 days, 3 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
1 day, 2 hours ago -
Edge Seems To Be Gaining Weight
by
bbearren
1 day, 17 hours ago -
Rufus is available from the MSFT Store
by
PL1
2 days, 2 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
3 days, 4 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
1 day, 4 hours ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
1 day, 3 hours ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
3 days ago -
Office gets current release
by
Susan Bradley
3 days, 3 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
4 days, 17 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
4 days, 1 hour ago -
Stop the OneDrive defaults
by
CWBillow
4 days, 18 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
5 days, 4 hours ago -
X Suspends Encrypted DMs
by
Alex5723
5 days, 6 hours ago
Recent blog posts
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.