Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Running Excel 4.0 Macro in Excel 2007.

I am a rookie in Excel macros. I am just taking over an application that was
developed in Excel 4.0 macro ages ago and the company does not have the time
or resources to re-code the whole thing in VBA. But they want the same Excel
4.0 macro application to run in Office 2007.

This 4.0 macro runs commands like "=DELETE.COMMAND(CBBar,5,4,1)" which in a
pre-Excel 2007 setup, used to delete the "Format - Sheet - Rename" option.
Later in the code it goes ahead and adds its own macro for this "Format -
Sheet - Rename" option. As I understand, the "5, 4, 1" in the command
indicated to select the fifth menu from left, four menu down and first menu,
which happens to be "Format (5) - Sheet (4) - Rename (1)" option.

With Excel 2007 ribbon style, the Sheet Rename option is no longer at this
position. So, what is the kind of equivalent by which I can achieve this same
functionality in Excel 2007? Any suggestion to resolve this issue would be
highly appreciated.

Did lots of googling and did not find anything helpful between Excel 4.0
macro and Excel 2007. Any helpful links in this direction would also be
highly appreciated.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default Running Excel 4.0 Macro in Excel 2007.

There is nothing equivalent in Excel 2007 because ribbon command disabling
is no longer done with code. It's done with RibbonX the variant of XML that
customizes the ribbon. The RibbonX is embedded into the Excel 2007 file.
If you're new to Excel macros you really have a lot to chew on.<g

http://www.rondebruin.nl/ribbon.htm
http://msdn2.microsoft.com/en-us/library/aa338202.aspx

--
Jim
"CdSlc" wrote in message
...
|I am a rookie in Excel macros. I am just taking over an application that
was
| developed in Excel 4.0 macro ages ago and the company does not have the
time
| or resources to re-code the whole thing in VBA. But they want the same
Excel
| 4.0 macro application to run in Office 2007.
|
| This 4.0 macro runs commands like "=DELETE.COMMAND(CBBar,5,4,1)" which in
a
| pre-Excel 2007 setup, used to delete the "Format - Sheet - Rename" option.
| Later in the code it goes ahead and adds its own macro for this "Format -
| Sheet - Rename" option. As I understand, the "5, 4, 1" in the command
| indicated to select the fifth menu from left, four menu down and first
menu,
| which happens to be "Format (5) - Sheet (4) - Rename (1)" option.
|
| With Excel 2007 ribbon style, the Sheet Rename option is no longer at this
| position. So, what is the kind of equivalent by which I can achieve this
same
| functionality in Excel 2007? Any suggestion to resolve this issue would be
| highly appreciated.
|
| Did lots of googling and did not find anything helpful between Excel 4.0
| macro and Excel 2007. Any helpful links in this direction would also be
| highly appreciated.
|
| Thanks.


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
EXCEL macros running much more slowly in EXCEL 2007 vs. 2003 Eric Grove New Users to Excel 1 January 14th 10 08:17 PM
EXCEL 2007 CHART REFRESH WHILE MACRO IS RUNNING MikeM Charts and Charting in Excel 1 April 20th 09 07:38 AM
Please help me with running this macro in Excel 2007 [email protected] Excel Programming 0 August 14th 07 02:36 PM
How do I stop a macro from running in Excel 2007? Missy Excel Programming 0 May 9th 07 03:26 PM


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