Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default How ignore ribbon code when in Excel 2003

Jon
It works! I put the Application.Run command inside an If statement so that
it only executes when in the Excel 2007 environment. In Excel 2003, the
statement is not executed, the module containing all the 2007 macros is not
compiled, and everything works correctly.

Thanks greatly for this advice.
--
Don H.


"donh" wrote:

Jon,
This seems like it should work. I appreciate the suggestion; thanks. I'll
report back with results.
--
Don H.


"Jon Peltier" wrote:

If you are going to use another workbook, you don't need this complication.
However, as I was clicking on this post I was already thinking of a
solution, and it also uses Application.Run:

Application.Run "'" & ThisWorkbook.Name & '!Excel2007Procedure"

This won't cause anything to compile, because does not call the procedure
until run time.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/


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
How to protect excel workbook from macro starting from Developer - Code ribbon? Ivan Excel Programming 3 July 27th 12 06:02 PM
Modifying XLA to show toolbar in XL 2003 and ribbon tab in XL 2007 jean grey Excel Programming 4 January 28th 09 05:14 AM
Assign a Ribbon Control's Label from a Variable in VBA Code jean grey Excel Programming 3 January 27th 09 05:47 AM
Open Workbook Add In with 2007 & 2003, Which Changes Ribbon & Tool RyanH Excel Programming 1 September 30th 08 06:19 PM
Splitting up code ribbon 3e Excel Discussion (Misc queries) 2 June 19th 08 02:07 PM


All times are GMT +1. The time now is 01:17 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"