Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default set path for Application.Run

I have an addin with userforms that I am trouble accessing. I have tried
the following code:
Application.DefaultFilePath = "C:\Documents and
Settings\Username\Application Data\Microsoft\Addins\"
Application.Run "MyAddin.xla!TL.ShowUserform1"

I get "Run-time error 1004" - "'MyAddin.xla could not be found..."

Any suggestions, guys?

TIA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default set path for Application.Run

No, MyAddin.xla is not open. It's installed, but not open.

st.

"Jim Rech" wrote in message
...
MyAddin.xla is open right? If not, it has to be open before you can run
code in it. No reason to change the default file path, in fact, it's a

bad
idea unless this is just for you. Users generally don't appreciate you
changing their preferences.

--
Jim Rech
Excel MVP




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hyperlink navigation path path wrong in Excel 2003 CE Admin Excel Discussion (Misc queries) 5 January 7th 06 07:47 PM
how to change absolute path to relative path hwijgerse Excel Worksheet Functions 0 November 25th 05 07:18 AM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
Application.Path in Excel 2k and 2002 Simon[_12_] Excel Programming 1 November 12th 03 05:51 PM
Application.Path Simon Davies Excel Programming 1 November 12th 03 04:52 PM


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

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

About Us

"It's about Microsoft Excel"