Help !

P

Peter Totev

Hi,

Is it possible to open visio page from the same project when choose item
from ComboBox and How ?
 
C

Chris Roth [MVP]

Hi Peter,

I'm not sure if I fully understood your question, but I just put up a sample
that shows you how to:

- Put a combo-box control on a Visio
- Poplulate the box with a list of all pages in the Visio document
- Jump to the correct page when an item from the list is selected

You'll find it here:
http://www.visguy.com/2006/11/08/combo-box-table-of-contents/

Hopefully this is close enough to get you going!

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
 
P

Peter Totev

I already put the combo-box and populated the items . I don't know how to
Jump to the correct page when an item from the list is selected.

I tried with this code :

Private Sub ComboBox1_Click()

Select Case ComboBox1
Case "page-1"
GOTOPAGE ("page-1")

End Sub

But this doesn't work . And show me (Error 35) Sub or Function not defined .

Where and what I have to defined ?
What's the code ?
 

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