Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2007

Tip: Looking for answers? Try searching our database.

Macro Needed, Two Saves in One

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jojo - 26 Mar 2007 15:11 GMT
Hi,
I need some help.
Workin with Visio 2003 and Win XP ...

I have a Visio page open and I have saved it once already as a VSD file, so
it already has a filename with a aVSD extension.

Now I'd like to be able to click a macro button that does this

   Application.ActiveDocument.Save

then this

   Application.ActiveWindow.Page.Export "C:\Documents and Settings\Visio
Stuff\PNG\SameFileNameAsVisioFileName.png"

i.e. Export the file (keeping the same filename as the VSD name)  but as a
PNG (with a PNG extension ) in my PNG subfolder .

And have this available when I create my next new VSD file ...

Any help appreciated.

TIA
Jojo
Graham Mayor - 26 Mar 2007 15:27 GMT
What does this have to do with Microsoft Word? Ask in the Visio forum.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Hi,
> I need some help.
[quoted text clipped - 21 lines]
> TIA
> Jojo
Jojo - 26 Mar 2007 17:17 GMT
Ooops ! and Yes I made a mistake.
Sorry a bout that.
What did you want me to do, apologise in advance ?

Why do these MVPs have to be so damned cocky ?
Jojo.

> What does this have to do with Microsoft Word? Ask in the Visio forum.
>
[quoted text clipped - 23 lines]
>> TIA
>> Jojo
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.