A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Cannot run RUNADDON in Visio 2003 Professional



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2004, 09:11 PM
Rose
external usenet poster
 
Posts: n/a
Default Cannot run RUNADDON in Visio 2003 Professional

I have a pretty large org chart (33 pages so far) that I want to have fully refreshed on opening the file (and ideally, also on demand).

Even though I have set every page to "refresh on open", only the page that is active when the file open is being refreshed.

I have therefore tried setting up a macro that loops through all my pages and executes RUNADDON("Database Refresh"). The loop is working great, but the RUNADDON function is not recognised - "Sub or Function not defined" is what I get.

This is driving me crazy because I am sure there is a simple answer to it - HELP please!

Note I can manually refresh page by page, using the Refresh Add-on, or right-clicking on the page and selecting refresh.


  #2  
Old May 6th, 2004, 09:48 PM
Al Edlund
external usenet poster
 
Posts: n/a
Default Cannot run RUNADDON in Visio 2003 Professional

Ran into it when I was doing some timeline stuff. The runaddon format
changed

Set objApp = Visio.Application
Set objAddOn = objApp.Addons.Item("TheAddonName")

do some setup stuff

Application.DoEvents
objApp.AlertResponse = 1 ' do alert response if you
expect a prompt
objAddOn.Run ("/cmd=3") ' the unique command is optional
objApp.AlertResponse = 0

your mileage may vary,

Al
"Rose" wrote in message
...
I have a pretty large org chart (33 pages so far) that I want to have

fully refreshed on opening the file (and ideally, also on demand).

Even though I have set every page to "refresh on open", only the page that

is active when the file open is being refreshed.

I have therefore tried setting up a macro that loops through all my pages

and executes RUNADDON("Database Refresh"). The loop is working great, but
the RUNADDON function is not recognised - "Sub or Function not defined" is
what I get.

This is driving me crazy because I am sure there is a simple answer to

it - HELP please!

Note I can manually refresh page by page, using the Refresh Add-on, or

right-clicking on the page and selecting refresh.




  #3  
Old May 6th, 2004, 10:41 PM
Rose
external usenet poster
 
Posts: n/a
Default Cannot run RUNADDON in Visio 2003 Professional

LOL, yes, my mileage does vary!

It seems I am now getting further than before but the .Run won't execute, it seems to want some parameters (error 450), and , despite searching low and high for a description of the DBRS function, I can't find anything anywhere.

Perhaps someone from Microsoft can post a working bit of sample code, with explanation of the possible parameters?
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.