How to record a macro in Visio 2002

P

pman

I would like to automate some tasks in Visio 2002 but I can not find in the Tools / Marco menu the "Record New Macro" item as I can find for instance in Excel. Is there an option to set in order to be able to record a macro

Thanks very much
 
M

Mark Nelson [MS]

The feature is new in Visio 2003.

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.


pman said:
I would like to automate some tasks in Visio 2002 but I can not find in
the Tools / Marco menu the "Record New Macro" item as I can find for
instance in Excel. Is there an option to set in order to be able to record a
macro ?
 
J

John Marshall, MVP

M

MARTIN

Hi,

I would like to use macro recorder to see code generated
when you delete connections between two shapes. Visio 2002
doesn't support this feature... and it's the only version
i have. As you mentionned the feature is new in Visio 2003.

If someone as VISIO 2003, could record me a macro deleting
connections between two shapes...

Thanks for your help!
 
J

John Marshall, MVP

Two squares are dropped on a page and a line connecting them is added (shape
#3)

When deleting the connecting line, the recorded macro is:
ActiveWindow.Select Application.ActiveWindow.Page.Shapes.ItemFromID(3),
visSelect
Application.ActiveWindow.Selection.Delete

So the first line of the recorded macro selects the third shape on the page
(the connecting line) and the select line deletes the shape.

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
 

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