How to record a macro in Visio 2002

How to record a macro in Visio 2002

Post by cG1hb » Wed, 19 Nov 2003 20:06:08


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
 
 
 

How to record a macro in Visio 2002

Post by Daniel Mos » Wed, 19 Nov 2003 20:43:08

as far as i know, Visio 2002 doesn't support this feature...

 
 
 

How to record a macro in Visio 2002

Post by Mark Nelso » Thu, 20 Nov 2003 03:32:03

The feature is new in Visio 2003.

--
Mark Nelson
Microsoft Corporation

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




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 ?
 
 
 

How to record a macro in Visio 2002

Post by John Marsh » Sat, 22 Nov 2003 12:21:46

First install Visio 2003.

John... Visio MVP

Need stencils or ideas? http://www.yqcomputer.com/
Need VBA examples? http://www.yqcomputer.com/
Common Visio Questions http://www.yqcomputer.com/


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 ?
 
 
 

How to record a macro in Visio 2002

Post by MARTI » Sun, 23 Nov 2003 04:24:45

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!


confers no rights.
message

can not find in
can find for
be able to record a
 
 
 

How to record a macro in Visio 2002

Post by John Marsh » Sun, 23 Nov 2003 07:55:21

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.yqcomputer.com/
Need VBA examples? http://www.yqcomputer.com/
Common Visio Questions http://www.yqcomputer.com/