Kevin
Thu Nov 18 07:42:26 CST 2004
It may LOOK like what you're trying to do, but it's not. A Windows Form
ComboBox Control and an HTML dropdown list box are not only different in
functionality, but completely different types of UI elements. One is part of
an executable program. The other is HTML text in an HTML document. One is
painted on the screen by a graphics device. The other is drawn by a browser
reading an HTML document. HTML is created by writing text into an HTML
document. All FrontPage does is write the HTML. VBA stands for "Visual Basic
for Applications." An HTML document is not an application. You can write
macros for Word documents, but that is because a Word document is a
proprietary file type developed by Microsoft. HTML is an international
standard that Microsoft didn't invent.
--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
"mark oliver" <mark_oliverr@adelphia.net> wrote in message
news:RI2dnWhUL-6GbgbcRVn-vw@adelphia.com...
> Hi,
>
> i don't know what a VBA form is. i am trying to use VBA to wite HTML
> through FrontPage. On my FrontPage form i have a drop-down box. i also
> have a long list of items i want to put into the drop-down box. i want
to
> write VBA code to do it.
>
> This is from FrontPage VBA help:
>
> Private Sub CommandButton1_Click()
> ComboBox1.DropDown
> End Sub
>
> Private Sub UserForm_Initialize()
> ComboBox1.AddItem "Turkey"
> ComboBox1.AddItem "Chicken"
> ComboBox1.AddItem "Duck"
> ComboBox1.AddItem "Goose"
> ComboBox1.AddItem "Grouse"
> End Sub
>
> It looks like what i am trying to do. What is the VBA code to add
items
> to a drop-down box?
>
> Thanks,
> Mark
>
> "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
> news:uCDXIRIzEHA.2692@TK2MSFTNGP10.phx.gbl...
> > You can not use VBA forms / form buttons in a web page
> >
> > --
> >
> > _____________________________________________
> > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> > "Warning - Using the F1 Key will not break anything!" (-;
> > To find the best Newsgroup for FrontPage support see:
> >
http://www.net-sites.com/sitebuilder/newsgroups.asp
> > _____________________________________________
> >
> >
> > "mark oliver" <mark_oliverr@adelphia.net> wrote in message
> > news:zIKdnRE94p9ZTAfcRVn-3Q@adelphia.com...
> > | Hi,
> > |
> > | i am just starting to try to automate some stuff in frontpage.
VBA
> > help
> > | talks about a CommandButton - frontpage help doesn't know what that
is -
> > how
> > | do i add a CommandButton to a form? VBA help talks about a
ComboBox -
> > | frontpage help doesn't know what that is - how do i add a ComboBox to
a
> > | form?
> > |
> > | Thanks,
> > | Mark
> > |
> > |
> >
> >
>
>