newby stupid questions

M

mark oliver

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
 
S

Stefan B Rusynko

You can not use VBA forms / form buttons in a web page




| 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
|
|
 
M

mark oliver

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
 
K

Kevin Spencer

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.
 
M

meg

This is just rudimentary, but an example, there's a lot more to know. (You can see this if you ever go to a
website that has a drop down box and click on View in the browswer menu and select 'Source.') Check out MSDN
Library for help, and there's lots of free tutorials online.

<FORM name="frmName" action="PageName" method="get">
<SELECT id="Birds" name="Birds">
<option>Turkey</option>
<option>Chicken</option>
<option>Duck</option>
<option>Goose</option>
<option>Grouse</option>
</SELECT>
</FORM>

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top