Help!

How to open Properties on click

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions RSS
Next:  hiding a sheet in MS Visio  
Author Message
raven
External


Since: May 03, 2005
Posts: 10



PostPosted: Wed May 04, 2005 10:40 am    Post subject: How to open Properties on click
Archived from groups: microsoft>public>visio>general (more info?)

How can I make a stencil to show it's properties with a single click (or
double-click).
Back to top
David Parker [Visio MVP]
External


Since: Apr 04, 2005
Posts: 213



PostPosted: Wed May 04, 2005 10:02 pm    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you mean a shape, then you need to add =DOCMD(1312) into the
EventDblClick cell in the Events section of the shapsheet.
It is best to do this in the master, so that all copies will inherit this.

"raven" <raven RemoveThis @discussions.microsoft.com> wrote in message
news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
> How can I make a stencil to show it's properties with a single click (or
> double-click).
Back to top
raven
External


Since: May 03, 2005
Posts: 10



PostPosted: Wed May 04, 2005 10:02 pm    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Perfect. Thanks

"David Parker [Visio MVP]" wrote:

> If you mean a shape, then you need to add =DOCMD(1312) into the
> EventDblClick cell in the Events section of the shapsheet.
> It is best to do this in the master, so that all copies will inherit this.
>
> "raven" <raven RemoveThis @discussions.microsoft.com> wrote in message
> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
> > How can I make a stencil to show it's properties with a single click (or
> > double-click).
>
>
>
Back to top
TechAuthorAndy
External


Since: Sep 28, 2009
Posts: 7



PostPosted: Mon Sep 28, 2009 5:44 am    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Quick question on this.
David - is there a similar method of displaying the Custom Properties window
as opposed to the dialog box?

"David Parker [Visio MVP]" wrote:

> If you mean a shape, then you need to add =DOCMD(1312) into the
> EventDblClick cell in the Events section of the shapsheet.
> It is best to do this in the master, so that all copies will inherit this.
>
> "raven" <raven RemoveThis @discussions.microsoft.com> wrote in message
> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
> > How can I make a stencil to show it's properties with a single click (or
> > double-click).
>
>
>
Back to top
AlEdlund
External


Since: Feb 17, 2009
Posts: 29



PostPosted: Mon Sep 28, 2009 9:42 am    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

try 1658, since that is the visCmdCustProp (visio.visuicmds in the object
browser).
al


"TechAuthorAndy" <taa RemoveThis @discussions.microsoft.com> wrote in message
news:07AE3A9A-C359-4326-A9A8-772CDBC1BDC0@microsoft.com...
> Quick question on this.
> David - is there a similar method of displaying the Custom Properties
> window
> as opposed to the dialog box?
>
> "David Parker [Visio MVP]" wrote:
>
>> If you mean a shape, then you need to add =DOCMD(1312) into the
>> EventDblClick cell in the Events section of the shapsheet.
>> It is best to do this in the master, so that all copies will inherit
>> this.
>>
>> "raven" <raven RemoveThis @discussions.microsoft.com> wrote in message
>> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
>> > How can I make a stencil to show it's properties with a single click
>> > (or
>> > double-click).
>>
>>
>>
Back to top
TechAuthorAndy
External


Since: Sep 28, 2009
Posts: 7



PostPosted: Tue Sep 29, 2009 1:51 am    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Al,
Thanks for that. 1658 won't work from the shapesheet unfortunately.
Cheers,
Andy

"AlEdlund" wrote:

> try 1658, since that is the visCmdCustProp (visio.visuicmds in the object
> browser).
> al
>
>
> "TechAuthorAndy" <taa DeleteThis @discussions.microsoft.com> wrote in message
> news:07AE3A9A-C359-4326-A9A8-772CDBC1BDC0@microsoft.com...
> > Quick question on this.
> > David - is there a similar method of displaying the Custom Properties
> > window
> > as opposed to the dialog box?
> >
> > "David Parker [Visio MVP]" wrote:
> >
> >> If you mean a shape, then you need to add =DOCMD(1312) into the
> >> EventDblClick cell in the Events section of the shapsheet.
> >> It is best to do this in the master, so that all copies will inherit
> >> this.
> >>
> >> "raven" <raven DeleteThis @discussions.microsoft.com> wrote in message
> >> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
> >> > How can I make a stencil to show it's properties with a single click
> >> > (or
> >> > double-click).
> >>
> >>
> >>
Back to top
AlEdlund
External


Since: Feb 17, 2009
Posts: 29



PostPosted: Tue Sep 29, 2009 9:00 am    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You might try it as a macro and then call the macro from the shape sheet.
(assumption by stencil you mean the shape).

'test macro in document
Public Sub myDoCmd()
Application.DoCmd (1658)
End Sub

'in place of the docmd in the dblclick event
="RUNADDON(""thisdocument.myDoCmd"")"

al

"TechAuthorAndy" <taa.DeleteThis@discussions.microsoft.com> wrote in message
news:74F287EC-08F8-4E89-B655-0AA5ACD78F6F@microsoft.com...
> Hi Al,
> Thanks for that. 1658 won't work from the shapesheet unfortunately.
> Cheers,
> Andy
>
> "AlEdlund" wrote:
>
>> try 1658, since that is the visCmdCustProp (visio.visuicmds in the object
>> browser).
>> al
>>
>>
>> "TechAuthorAndy" <taa.DeleteThis@discussions.microsoft.com> wrote in message
>> news:07AE3A9A-C359-4326-A9A8-772CDBC1BDC0@microsoft.com...
>> > Quick question on this.
>> > David - is there a similar method of displaying the Custom Properties
>> > window
>> > as opposed to the dialog box?
>> >
>> > "David Parker [Visio MVP]" wrote:
>> >
>> >> If you mean a shape, then you need to add =DOCMD(1312) into the
>> >> EventDblClick cell in the Events section of the shapsheet.
>> >> It is best to do this in the master, so that all copies will inherit
>> >> this.
>> >>
>> >> "raven" <raven.DeleteThis@discussions.microsoft.com> wrote in message
>> >> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
>> >> > How can I make a stencil to show it's properties with a single click
>> >> > (or
>> >> > double-click).
>> >>
>> >>
>> >>
Back to top
TechAuthorAndy
External


Since: Sep 28, 2009
Posts: 7



PostPosted: Tue Sep 29, 2009 9:00 am    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you Al. Got it working a treat now.

"AlEdlund" wrote:

> You might try it as a macro and then call the macro from the shape sheet.
> (assumption by stencil you mean the shape).
>
> 'test macro in document
> Public Sub myDoCmd()
> Application.DoCmd (1658)
> End Sub
>
> 'in place of the docmd in the dblclick event
> ="RUNADDON(""thisdocument.myDoCmd"")"
>
> al
>
> "TechAuthorAndy" <taa RemoveThis @discussions.microsoft.com> wrote in message
> news:74F287EC-08F8-4E89-B655-0AA5ACD78F6F@microsoft.com...
> > Hi Al,
> > Thanks for that. 1658 won't work from the shapesheet unfortunately.
> > Cheers,
> > Andy
> >
> > "AlEdlund" wrote:
> >
> >> try 1658, since that is the visCmdCustProp (visio.visuicmds in the object
> >> browser).
> >> al
> >>
> >>
> >> "TechAuthorAndy" <taa RemoveThis @discussions.microsoft.com> wrote in message
> >> news:07AE3A9A-C359-4326-A9A8-772CDBC1BDC0@microsoft.com...
> >> > Quick question on this.
> >> > David - is there a similar method of displaying the Custom Properties
> >> > window
> >> > as opposed to the dialog box?
> >> >
> >> > "David Parker [Visio MVP]" wrote:
> >> >
> >> >> If you mean a shape, then you need to add =DOCMD(1312) into the
> >> >> EventDblClick cell in the Events section of the shapsheet.
> >> >> It is best to do this in the master, so that all copies will inherit
> >> >> this.
> >> >>
> >> >> "raven" <raven RemoveThis @discussions.microsoft.com> wrote in message
> >> >> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
> >> >> > How can I make a stencil to show it's properties with a single click
> >> >> > (or
> >> >> > double-click).
> >> >>
> >> >>
> >> >>
Back to top
TechAuthorAndy
External


Since: Sep 28, 2009
Posts: 7



PostPosted: Fri Oct 16, 2009 6:04 am    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Al,

Sorry to drag this up again.
I tried to clean things up here by relocating that macro to a stencil, but I
can only get the macro to run if it exists in a drawing's module1. If the
macro is located say in the ThisDocument module of a stencil called Andy.vss,
what would be the RUNMACRO syntax to call this macro from the shapesheet?
Eg I'd expected something like "RUNMACRO (Andy!ThisDocument.myDoCmd)" to
work, but sadly not.
Many thanks in advance.

"AlEdlund" wrote:

> You might try it as a macro and then call the macro from the shape sheet.
> (assumption by stencil you mean the shape).
>
> 'test macro in document
> Public Sub myDoCmd()
> Application.DoCmd (1658)
> End Sub
>
> 'in place of the docmd in the dblclick event
> ="RUNADDON(""thisdocument.myDoCmd"")"
>
> al
>
> "TechAuthorAndy" <taa RemoveThis @discussions.microsoft.com> wrote in message
> news:74F287EC-08F8-4E89-B655-0AA5ACD78F6F@microsoft.com...
> > Hi Al,
> > Thanks for that. 1658 won't work from the shapesheet unfortunately.
> > Cheers,
> > Andy
> >
> > "AlEdlund" wrote:
> >
> >> try 1658, since that is the visCmdCustProp (visio.visuicmds in the object
> >> browser).
> >> al
> >>
> >>
> >> "TechAuthorAndy" <taa RemoveThis @discussions.microsoft.com> wrote in message
> >> news:07AE3A9A-C359-4326-A9A8-772CDBC1BDC0@microsoft.com...
> >> > Quick question on this.
> >> > David - is there a similar method of displaying the Custom Properties
> >> > window
> >> > as opposed to the dialog box?
> >> >
> >> > "David Parker [Visio MVP]" wrote:
> >> >
> >> >> If you mean a shape, then you need to add =DOCMD(1312) into the
> >> >> EventDblClick cell in the Events section of the shapsheet.
> >> >> It is best to do this in the master, so that all copies will inherit
> >> >> this.
> >> >>
> >> >> "raven" <raven RemoveThis @discussions.microsoft.com> wrote in message
> >> >> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
> >> >> > How can I make a stencil to show it's properties with a single click
> >> >> > (or
> >> >> > double-click).
> >> >>
> >> >>
> >> >>
Back to top
David J Parker [MVP Visio
External


Since: Mar 27, 2009
Posts: 7



PostPosted: Mon Oct 19, 2009 4:10 am    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have copied the help contents from the Visio SDK below, but I would add
the following example:

=RUNMACRO("Module1.RunThis","Stencil2")

because ThisDocument is a Class not a Module

RUNMACRO:
Calls a macro in a Microsoft Visual Basic for Applications (VBA) project.

RUNMACRO (macroname [, projname_opt])

macroname Required string. The name of the macro to call.

projname_opt Optional string. The project that contains the macro.
Remarks
If a project is specified, Microsoft Office Visio scans all open documents
for the one containing projname_opt and calls macroname in that project. If
projname_opt is omitted or null (""), macroname is assumed to be in the VBA
project of the document that contains the RUNMACRO formula being evaluated.

The RUNMACRO function differs from the CALLTHIS function in that it does not
pass a reference to the shape that owns the formula being evaluated to
macroname. Like CALLTHIS, the RUNMACRO function doesn't require a reference
to projname_opt to call into it.

Note
VBA code that is invoked when the Visio instance evaluates a RUNMACRO
function in a formula should not close the document containing the cell
using the function because an application error results and Visio
terminates.

If you need to close the document containing the cell that uses the RUNMACRO
function, use one of the following techniques:


Close the document from code that is not VBA.
Close the document from a project other than the one that is closing.
Post window messages to close windows in the document rather than closing
the document.

For more information about running code in Visio, see About security
settings and running code in Visio in this ShapeSheet Reference.

Example
The following example invokes a macro called MyTest in the ThisDocument
class module of the VBA project containing the RUNMACRO formula.

RUNMACRO ("ThisDocument.MyTest")





"TechAuthorAndy" <taa.TakeThisOut@discussions.microsoft.com> wrote in message
news:6A6FDFB9-6283-4876-BDD7-68F475C73FBE@microsoft.com...
> Hi Al,
>
> Sorry to drag this up again.
> I tried to clean things up here by relocating that macro to a stencil, but
> I
> can only get the macro to run if it exists in a drawing's module1. If the
> macro is located say in the ThisDocument module of a stencil called
> Andy.vss,
> what would be the RUNMACRO syntax to call this macro from the shapesheet?
> Eg I'd expected something like "RUNMACRO (Andy!ThisDocument.myDoCmd)" to
> work, but sadly not.
> Many thanks in advance.
>
> "AlEdlund" wrote:
>
>> You might try it as a macro and then call the macro from the shape sheet.
>> (assumption by stencil you mean the shape).
>>
>> 'test macro in document
>> Public Sub myDoCmd()
>> Application.DoCmd (1658)
>> End Sub
>>
>> 'in place of the docmd in the dblclick event
>> ="RUNADDON(""thisdocument.myDoCmd"")"
>>
>> al
>>
>> "TechAuthorAndy" <taa.TakeThisOut@discussions.microsoft.com> wrote in message
>> news:74F287EC-08F8-4E89-B655-0AA5ACD78F6F@microsoft.com...
>> > Hi Al,
>> > Thanks for that. 1658 won't work from the shapesheet unfortunately.
>> > Cheers,
>> > Andy
>> >
>> > "AlEdlund" wrote:
>> >
>> >> try 1658, since that is the visCmdCustProp (visio.visuicmds in the
>> >> object
>> >> browser).
>> >> al
>> >>
>> >>
>> >> "TechAuthorAndy" <taa.TakeThisOut@discussions.microsoft.com> wrote in message
>> >> news:07AE3A9A-C359-4326-A9A8-772CDBC1BDC0@microsoft.com...
>> >> > Quick question on this.
>> >> > David - is there a similar method of displaying the Custom
>> >> > Properties
>> >> > window
>> >> > as opposed to the dialog box?
>> >> >
>> >> > "David Parker [Visio MVP]" wrote:
>> >> >
>> >> >> If you mean a shape, then you need to add =DOCMD(1312) into the
>> >> >> EventDblClick cell in the Events section of the shapsheet.
>> >> >> It is best to do this in the master, so that all copies will
>> >> >> inherit
>> >> >> this.
>> >> >>
>> >> >> "raven" <raven.TakeThisOut@discussions.microsoft.com> wrote in message
>> >> >> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
>> >> >> > How can I make a stencil to show it's properties with a single
>> >> >> > click
>> >> >> > (or
>> >> >> > double-click).
>> >> >>
>> >> >>
>> >> >>
Back to top
TechAuthorAndy
External


Since: Sep 28, 2009
Posts: 7



PostPosted: Wed Oct 21, 2009 5:04 am    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Apologies for not replying sooner. I forgot to select the response
notification button. Doh! Anyway thanks a lot, David. I haven't had a chance
to try this yet, but will feedback when I do. Cheers, Andy.

"David J Parker [MVP Visio]" wrote:

> I have copied the help contents from the Visio SDK below, but I would add
> the following example:
>
> =RUNMACRO("Module1.RunThis","Stencil2")
>
> because ThisDocument is a Class not a Module
>
> RUNMACRO:
> Calls a macro in a Microsoft Visual Basic for Applications (VBA) project.
>
> RUNMACRO (macroname [, projname_opt])
>
> macroname Required string. The name of the macro to call.
>
> projname_opt Optional string. The project that contains the macro.
> Remarks
> If a project is specified, Microsoft Office Visio scans all open documents
> for the one containing projname_opt and calls macroname in that project. If
> projname_opt is omitted or null (""), macroname is assumed to be in the VBA
> project of the document that contains the RUNMACRO formula being evaluated.
>
> The RUNMACRO function differs from the CALLTHIS function in that it does not
> pass a reference to the shape that owns the formula being evaluated to
> macroname. Like CALLTHIS, the RUNMACRO function doesn't require a reference
> to projname_opt to call into it.
>
> Note
> VBA code that is invoked when the Visio instance evaluates a RUNMACRO
> function in a formula should not close the document containing the cell
> using the function because an application error results and Visio
> terminates.
>
> If you need to close the document containing the cell that uses the RUNMACRO
> function, use one of the following techniques:
>
>
> Close the document from code that is not VBA.
> Close the document from a project other than the one that is closing.
> Post window messages to close windows in the document rather than closing
> the document.
>
> For more information about running code in Visio, see About security
> settings and running code in Visio in this ShapeSheet Reference.
>
> Example
> The following example invokes a macro called MyTest in the ThisDocument
> class module of the VBA project containing the RUNMACRO formula.
>
> RUNMACRO ("ThisDocument.MyTest")
>
>
>
>
>
> "TechAuthorAndy" <taa.DeleteThis@discussions.microsoft.com> wrote in message
> news:6A6FDFB9-6283-4876-BDD7-68F475C73FBE@microsoft.com...
> > Hi Al,
> >
> > Sorry to drag this up again.
> > I tried to clean things up here by relocating that macro to a stencil, but
> > I
> > can only get the macro to run if it exists in a drawing's module1. If the
> > macro is located say in the ThisDocument module of a stencil called
> > Andy.vss,
> > what would be the RUNMACRO syntax to call this macro from the shapesheet?
> > Eg I'd expected something like "RUNMACRO (Andy!ThisDocument.myDoCmd)" to
> > work, but sadly not.
> > Many thanks in advance.
> >
> > "AlEdlund" wrote:
> >
> >> You might try it as a macro and then call the macro from the shape sheet.
> >> (assumption by stencil you mean the shape).
> >>
> >> 'test macro in document
> >> Public Sub myDoCmd()
> >> Application.DoCmd (1658)
> >> End Sub
> >>
> >> 'in place of the docmd in the dblclick event
> >> ="RUNADDON(""thisdocument.myDoCmd"")"
> >>
> >> al
> >>
> >> "TechAuthorAndy" <taa.DeleteThis@discussions.microsoft.com> wrote in message
> >> news:74F287EC-08F8-4E89-B655-0AA5ACD78F6F@microsoft.com...
> >> > Hi Al,
> >> > Thanks for that. 1658 won't work from the shapesheet unfortunately.
> >> > Cheers,
> >> > Andy
> >> >
> >> > "AlEdlund" wrote:
> >> >
> >> >> try 1658, since that is the visCmdCustProp (visio.visuicmds in the
> >> >> object
> >> >> browser).
> >> >> al
> >> >>
> >> >>
> >> >> "TechAuthorAndy" <taa.DeleteThis@discussions.microsoft.com> wrote in message
> >> >> news:07AE3A9A-C359-4326-A9A8-772CDBC1BDC0@microsoft.com...
> >> >> > Quick question on this.
> >> >> > David - is there a similar method of displaying the Custom
> >> >> > Properties
> >> >> > window
> >> >> > as opposed to the dialog box?
> >> >> >
> >> >> > "David Parker [Visio MVP]" wrote:
> >> >> >
> >> >> >> If you mean a shape, then you need to add =DOCMD(1312) into the
> >> >> >> EventDblClick cell in the Events section of the shapsheet.
> >> >> >> It is best to do this in the master, so that all copies will
> >> >> >> inherit
> >> >> >> this.
> >> >> >>
> >> >> >> "raven" <raven.DeleteThis@discussions.microsoft.com> wrote in message
> >> >> >> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
> >> >> >> > How can I make a stencil to show it's properties with a single
> >> >> >> > click
> >> >> >> > (or
> >> >> >> > double-click).
> >> >> >>
> >> >> >>
> >> >> >>
Back to top
TechAuthorAndy
External


Since: Sep 28, 2009
Posts: 7



PostPosted: Wed Oct 28, 2009 5:04 am    Post subject: Re: How to open Properties on click [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

As mentioned in my previous post, I thought it might be useful to feedback on
this and post how I got it to work (thanks to David's pointers).

My EventDblClick formula looks like this:
=RUNMACRO("ThisDocument.myDoCmd","TEST")

This is running a macro called 'myDoCmd', which is located in the
'ThisDocument' module of a stencil called 'TEST'.

Cheers,


Andy



"TechAuthorAndy" wrote:

> Apologies for not replying sooner. I forgot to select the response
> notification button. Doh! Anyway thanks a lot, David. I haven't had a chance
> to try this yet, but will feedback when I do. Cheers, Andy.
>
> "David J Parker [MVP Visio]" wrote:
>
> > I have copied the help contents from the Visio SDK below, but I would add
> > the following example:
> >
> > =RUNMACRO("Module1.RunThis","Stencil2")
> >
> > because ThisDocument is a Class not a Module
> >
> > RUNMACRO:
> > Calls a macro in a Microsoft Visual Basic for Applications (VBA) project.
> >
> > RUNMACRO (macroname [, projname_opt])
> >
> > macroname Required string. The name of the macro to call.
> >
> > projname_opt Optional string. The project that contains the macro.
> > Remarks
> > If a project is specified, Microsoft Office Visio scans all open documents
> > for the one containing projname_opt and calls macroname in that project. If
> > projname_opt is omitted or null (""), macroname is assumed to be in the VBA
> > project of the document that contains the RUNMACRO formula being evaluated.
> >
> > The RUNMACRO function differs from the CALLTHIS function in that it does not
> > pass a reference to the shape that owns the formula being evaluated to
> > macroname. Like CALLTHIS, the RUNMACRO function doesn't require a reference
> > to projname_opt to call into it.
> >
> > Note
> > VBA code that is invoked when the Visio instance evaluates a RUNMACRO
> > function in a formula should not close the document containing the cell
> > using the function because an application error results and Visio
> > terminates.
> >
> > If you need to close the document containing the cell that uses the RUNMACRO
> > function, use one of the following techniques:
> >
> >
> > Close the document from code that is not VBA.
> > Close the document from a project other than the one that is closing.
> > Post window messages to close windows in the document rather than closing
> > the document.
> >
> > For more information about running code in Visio, see About security
> > settings and running code in Visio in this ShapeSheet Reference.
> >
> > Example
> > The following example invokes a macro called MyTest in the ThisDocument
> > class module of the VBA project containing the RUNMACRO formula.
> >
> > RUNMACRO ("ThisDocument.MyTest")
> >
> >
> >
> >
> >
> > "TechAuthorAndy" <taa RemoveThis @discussions.microsoft.com> wrote in message
> > news:6A6FDFB9-6283-4876-BDD7-68F475C73FBE@microsoft.com...
> > > Hi Al,
> > >
> > > Sorry to drag this up again.
> > > I tried to clean things up here by relocating that macro to a stencil, but
> > > I
> > > can only get the macro to run if it exists in a drawing's module1. If the
> > > macro is located say in the ThisDocument module of a stencil called
> > > Andy.vss,
> > > what would be the RUNMACRO syntax to call this macro from the shapesheet?
> > > Eg I'd expected something like "RUNMACRO (Andy!ThisDocument.myDoCmd)" to
> > > work, but sadly not.
> > > Many thanks in advance.
> > >
> > > "AlEdlund" wrote:
> > >
> > >> You might try it as a macro and then call the macro from the shape sheet.
> > >> (assumption by stencil you mean the shape).
> > >>
> > >> 'test macro in document
> > >> Public Sub myDoCmd()
> > >> Application.DoCmd (1658)
> > >> End Sub
> > >>
> > >> 'in place of the docmd in the dblclick event
> > >> ="RUNADDON(""thisdocument.myDoCmd"")"
> > >>
> > >> al
> > >>
> > >> "TechAuthorAndy" <taa RemoveThis @discussions.microsoft.com> wrote in message
> > >> news:74F287EC-08F8-4E89-B655-0AA5ACD78F6F@microsoft.com...
> > >> > Hi Al,
> > >> > Thanks for that. 1658 won't work from the shapesheet unfortunately.
> > >> > Cheers,
> > >> > Andy
> > >> >
> > >> > "AlEdlund" wrote:
> > >> >
> > >> >> try 1658, since that is the visCmdCustProp (visio.visuicmds in the
> > >> >> object
> > >> >> browser).
> > >> >> al
> > >> >>
> > >> >>
> > >> >> "TechAuthorAndy" <taa RemoveThis @discussions.microsoft.com> wrote in message
> > >> >> news:07AE3A9A-C359-4326-A9A8-772CDBC1BDC0@microsoft.com...
> > >> >> > Quick question on this.
> > >> >> > David - is there a similar method of displaying the Custom
> > >> >> > Properties
> > >> >> > window
> > >> >> > as opposed to the dialog box?
> > >> >> >
> > >> >> > "David Parker [Visio MVP]" wrote:
> > >> >> >
> > >> >> >> If you mean a shape, then you need to add =DOCMD(1312) into the
> > >> >> >> EventDblClick cell in the Events section of the shapsheet.
> > >> >> >> It is best to do this in the master, so that all copies will
> > >> >> >> inherit
> > >> >> >> this.
> > >> >> >>
> > >> >> >> "raven" <raven RemoveThis @discussions.microsoft.com> wrote in message
> > >> >> >> news:1584822D-22F7-4CFE-B1D4-7A66408595BA@microsoft.com...
> > >> >> >> > How can I make a stencil to show it's properties with a single
> > >> >> >> > click
> > >> >> >> > (or
> > >> >> >> > double-click).
> > >> >> >>
> > >> >> >>
> > >> >> >>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum