0

I have a Visio drawing and I want to be able to Select shapes from it and paste them to other sheets depending on certain variables.

What is the code for selecting the different shapes on the page. I am trying this but it is not working.

Dim vsoSelection As Visio.Selection
vsoSelection.Select Visio.Shape(1), visSelect

What am I missing here?

and also is it possible to get the strings entered into text boxes into Visio?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
JahKnows
  • 2,618
  • 3
  • 22
  • 37
  • What do you mean by the "Strings entered into text boxes"? Do you mean the text of a shape, or do you mean textbox controls added to a page? – Jon Fournier Aug 14 '13 at 19:21

1 Answers1

3

I am assuming you're getting an error because your vsoSelection object is nothing. So you need to do: Set vsoSelection = ActiveWindow.Selection

Jon Fournier
  • 4,299
  • 3
  • 33
  • 43