LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Favorites.xla

Dick Krusleika, has an add-in, favorites.xla that adds a favorite list
to the File Menu. It limits the list to 9 files, which I have changed
to 15 files and thus, this line in the add-in fails to open any files
10 - 15:

With CommandBars.ActionControl
'Try to open the file
sCap = HandleAmp(Right(.Caption, Len(.Caption) - 3), _ False)
On Error Resume Next
Set wb = Workbooks.Open(sCap)
On Error GoTo 0

I need an or statement, such as:

Or sCap = HandleAmp(Right(.Caption, Len(.Caption) - 4), False)

but it doesn't work. How do I make it work? TIA

Greg

 
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
Favorites trvlnmny New Users to Excel 0 April 1st 11 06:26 PM
What's your favorites? Connor[_2_] Excel Discussion (Misc queries) 12 March 7th 09 07:23 PM
favorites rm20005rm Excel Discussion (Misc queries) 1 November 3rd 07 08:17 PM
Favorites in Excel sphbecker Setting up and Configuration of Excel 3 June 1st 06 11:10 PM
Adding to Favorites George Burdell[_2_] Excel Programming 1 September 9th 04 11:20 PM


All times are GMT +1. The time now is 12:38 AM.

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

About Us

"It's about Microsoft Excel"