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, 6 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
-
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
3 hours, 58 minutes ago -
Apple backports fixes
by
Susan Bradley
4 hours, 7 minutes ago -
Win 11 24H2 will not install
by
Michael1950
4 hours, 11 minutes ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
3 hours, 43 minutes ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
5 hours, 50 minutes ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
3 hours, 59 minutes ago -
Get back ” Open With” in context menus
by
CWBillow
16 hours, 52 minutes ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
20 hours, 39 minutes ago -
simple general stupid question
by
WSaltamirano
14 hours, 39 minutes ago -
April 2025 Office non-Security updates
by
PKCano
1 day, 7 hours ago -
Microsoft wants to hear from you
by
Will Fastie
7 hours, 46 minutes ago -
Windows 11 Insider Preview Build 22635.5160 (23H2) released to BETA
by
joep517
1 day, 11 hours ago -
Europe Seeks Alternatives to U.S. Cloud Providers
by
Alex5723
1 day, 16 hours ago -
Test post
by
Susan Bradley
1 day, 18 hours ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
1 day, 20 hours ago -
SSD shuts down on its own
by
CWBillow
1 day, 12 hours ago -
OneDrive File Sharing Changes
by
David Clark
2 days, 4 hours ago -
OneDrive File Sharing Changes
by
David Clark
2 days, 6 hours ago -
Win 10 Pro 22H2 to Win 11 Pro 23H2 Conversion Guide
by
doneager
1 day, 6 hours ago -
Today is world backup day
by
Alex5723
1 day, 22 hours ago -
Windows .exe on Mint
by
Slowpoke47
3 hours, 25 minutes ago -
Reviewing your licensing options
by
Susan Bradley
4 hours, 19 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
1 day, 3 hours ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
23 hours, 28 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
1 day ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
2 days, 4 hours ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
2 days, 2 hours ago -
YouTube Ad Blocker Blocker
by
bbearren
2 days, 2 hours ago -
Obscure historical facts about Windows
by
Cybertooth
2 days, 4 hours ago -
Microsoft Backup
by
Linda2019
1 day, 19 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.