DOCLASTSAVE()

S

Scott

The Insert/Field menu item allows various fields to be placed into shapes.
The Date/Time category offers four options: creation, current, last edit and
print. However, VB offers another, more useful date/time option for our
purposes: last save.

At the moment, the only way I can find for a user to take advantage of the
last save date is to: 1) insert last edit date/time 2) manually edit the
shapesheet to change DOCLASTEDIT() to DOCLASTSAVE().

My question: is there a way to add the last save field from the Visio UI?
Failing that, can my COM add-in alter the Visio Insert/Field dialog to
include the last save function and also allow the same formatting choices
that the other date/time fields do? Any sample code for doing this?

Thanks --
 
A

Al Edlund

The easiest way is to turn on the macro recorder and record what you are
trying to do.
al
 
S

Scott

Good suggestion, Al, except that there doesn't appear to be a way to do what
I want from the UI -- so there's no set of actions I can record. If I'm
wrong, I'd love to be corrected, but I don't see any keystrokes or menu items
that will let me add another function to the Insert/Field dialog.

So back to my original question: I know I can add a menu item from my code
but can I add a function to the Insert/Field dialog?

Even better, is there an existing way that I've missed that will insert the
DOCLASTSAVE() function into a shape's text field?
 

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