Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Override normal VBA when clicking on a add-in (BEx) toolbar button

I have a toolbar with a "RefreshNow" button that I want to preempt so I can
do some extra steps. I have ID'd the toolbar and button object code as :

commandbars("Business Explorer").Controls("RefreshNow")

I have tried :

commandbars("Business Explorer").Controls("RefreshNow").OnAction = MsgBox

(for example), but this does not seem to work. I would like the preempt to
work on all tabs of this workbook.

For a procedure name, I tried "Sub RefreshNowButton_click()".

Any Ideas would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 417
Default Override normal VBA when clicking on a add-in (BEx) toolbar button

Is this related to the SAP add-in for Excel VBA? I don't have any
experience with SAP, so can't really advise much, except that I found
the following web page sort of related to this:
"Integration with Visual Basic for Applications"
http://help.sap.com/saphelp_bw21c/he...fe/content.htm

You might have to call SAP technical support, or see if you can get a
more detailed technical document somewhere that might describe how to do
this. It appears from this page that you can do things AFTER the Refresh
has occurred. If they don't have a hook of some sort at the front of
their "Refresh Now" routine, then this might not be possible.

Is it possible to add a workbook of your own with its own toolbar that
would have a button to do the stuff you want to do before clicking on
the "Refresh Now" button?

It might be possible to display the Customize dialog box, then select
the "Refresh Now" button, and Assign Macro to a macro of yours, which
does your stuff, then calls their routine in their code, but this could
get complicated or might not even be allowed (imagine the security
breach where a virus overtakes your machine and redefines all of your
toolbar buttons!).
--
Regards,
Bill Renaud



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Override normal VBA when clicking on a add-in (BEx) toolbar bu

thanks. Unfortunately the web site shows a macro that get created when you
open the workbook but I can't seem to find it. I eveb looked in the very
hidden worksheet.

Anyway, I was able to do a workaround.

Thanks for the help though.

PS I think this is an older version of BEx, note the BW21c in the site id.
We are on BW3.5 and moving to 2004S.

"Bill Renaud" wrote:

Is this related to the SAP add-in for Excel VBA? I don't have any
experience with SAP, so can't really advise much, except that I found
the following web page sort of related to this:
"Integration with Visual Basic for Applications"
http://help.sap.com/saphelp_bw21c/he...fe/content.htm

You might have to call SAP technical support, or see if you can get a
more detailed technical document somewhere that might describe how to do
this. It appears from this page that you can do things AFTER the Refresh
has occurred. If they don't have a hook of some sort at the front of
their "Refresh Now" routine, then this might not be possible.

Is it possible to add a workbook of your own with its own toolbar that
would have a button to do the stuff you want to do before clicking on
the "Refresh Now" button?

It might be possible to display the Customize dialog box, then select
the "Refresh Now" button, and Assign Macro to a macro of yours, which
does your stuff, then calls their routine in their code, but this could
get complicated or might not even be allowed (imagine the security
breach where a virus overtakes your machine and redefines all of your
toolbar buttons!).
--
Regards,
Bill Renaud




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
Toolbar has changed - how to return to normal jmcclain Excel Discussion (Misc queries) 1 October 13th 09 08:13 PM
Clicking hyperlink causes toolbar to show TerryTutor Excel Discussion (Misc queries) 12 October 4th 07 03:33 PM
Spin Button to Change Label between Normal and BOLD Corey Excel Programming 1 April 30th 07 12:06 PM
Get info on toolbar button by clicking on it Spamarrant Excel Programming 0 August 25th 06 01:33 PM
Delete a custom button by holding down the ALT key and dragging the button off the toolbar Stephen[_8_] Excel Programming 0 April 4th 04 02:22 PM


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