Find & Replace in Macro

P

P&L-EC

I have two questions about "Find & Replace" in Visio:

1. How can I use Find() Function and Replace() Function in Macro, I want to
replace a character in the variable ?

2. When I use the "Record New Macro" in Visio to record the "Replace...", it
record what Visio backend done (see below) , not what my done (Find with,
Replace with, ...).

Dim vsoCharacters3 As Visio.Characters
Set vsoCharacters3 =
Application.ActiveWindow.Page.Shapes.ItemFromID(9).Characters
vsoCharacters3.Begin = 3
vsoCharacters3.End = 4
vsoCharacters3.Text = "" & Chr(10) & ""
...

What is the REAL Macro code for "Edit > Replace..." ?
 

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