Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2005

Tip: Looking for answers? Try searching our database.

how to apply programming in design mode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter - 18 Nov 2005 17:20 GMT
Hello,

I have added a listbox and done the following programing:

Private Sub ListBox1_Click()

ListBox1.AddItem ("Item1")
ListBox1.AddItem ("Item2")
ListBox1.AddItem ("Item3")

End Sub

When I go into the word doc and exit design mode, nothing happens. I would
expect the Sub routine to run and fill the listbox.  What step(s) am I
missing?

Thanks,
Peter
Karl E. Peterson - 18 Nov 2005 17:46 GMT
> I have added a listbox and done the following programing:
>
[quoted text clipped - 9 lines]
> would expect the Sub routine to run and fill the listbox.  What
> step(s) am I missing?

Well, is an instance of the form loaded and visible?

Did you click the listbox?
--
Peter - 18 Nov 2005 18:18 GMT
I'm not sure what you mean by "an instance of the form loaded" but I did try
to click on the listbox and nothing happens. When I put it back into design
mode I can get to the properties by clicking the listbox, but nothing happens
when clicking it after exiting design mode.

Do I have to turn on any VBA options or macros for the programing to take
effect?

> > I have added a listbox and done the following programing:
> >
[quoted text clipped - 14 lines]
> Did you click the listbox?
> --
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.