Create buttons in the workbook?

Hello Experts,
Any information on how to create buttons to point to workbooks. These bottons correspond to different WorkBooks (not worksheets within workbook )
button1: WorkBook1
button2 : WorkBook2.
Thanks,
Sweatha

Hi Sweatha,
Are the workbooks already open?
Are the workbooks stored on a local PC or LAN drive (and referred to using Microsoft reference), or are they stored on BW server (and referred to using SAP server ID)?
If the workbooks are already open:
Code behind button #1:
Private Sub CommandButton1_Click()
    ActiveCell.Activate
    Workbooks(Workbook1).Activate
End Sub
Code behind button #2:
Private Sub CommandButton2_Click()
    ActiveCell.Activate
    Workbooks(Workbook2).Activate
End Sub
If the workbooks are stored on PC or LAN as *.xls files:
Code behind button #1:
Private Sub CommandButton1_Click()
Dim FileToOpen as String
    ActiveCell.Activate
    FileToOpen = Workbook1 'full path + name
    Workbooks.Open FileName:=FileToOpen
End Sub
Code behind button #2:
Private Sub CommandButton2_Click()
Dim FileToOpen as String
    ActiveCell.Activate
    FileToOpen = Workbook2 'full path + name
    Workbooks.Open FileName:=FileToOpen
End Sub
If the workbooks are stored on BW server and referred to using SAP server ID
Code behind button #1:
Private Sub CommandButton1_Click()
Dim wbID as string
    ActiveCell.Activate
    wbID = Workbook1 'example: "2A024RULBDK33U5BNZH60RATU"
    Run "SAPBEX.XLA!SAPBEXreadWorkbook", wbID
End Sub
Code behind button #2:
Private Sub CommandButton2_Click()Dim wbID as string
    ActiveCell.Activate
    wbID = Workbook2 'example: "2A024RULBDK33U5BNZH60RATT"
    Run "SAPBEX.XLA!SAPBEXreadWorkbook", wbID
End Sub
Regards, Pete

Similar Messages

  • In an older version I could create buttons above the tabs for easy access to websites I chose. Is there a similar feature in the new version?

    In the older version if you clicked on a tab and dragged it to the area directly above the tab, then a button was created. I want to make buttons or preset links in the newer version. Is such a feature or add on available?

    omg I figured it out....Go to the bookmarks button on the right hand side of window (near the home button) click on it, then it has an option that says "view bookmarks toolbar" click on it. You should see a space appear below the web address bar area. You can drag tabs into this area like before. YAY. Hope this helps!

  • To create buttons on the popup or another window

    hi,
    My requirement is to validathe the contents on the web dynpro page which has the SUBMIT button, after submitting if the fields are blank then a warning message " do you want to continue " is to be displayed,
    the window should have  two buttons "yes" and " no " if i click yes than an email is to be sent and if no than continue.
    How can i create two buttons on the secondary window or popup.
    Thanks,
    Nishant

    Hi,
    I had the same requirement last year.
    you can use the same given below.
    DATA:          l_api  TYPE REF TO  if_wd_view_controller,
                         lo_window_manager TYPE REF TO if_wd_window_manager,
                         lo_api_component       TYPE REF TO if_wd_component,
                         lo_window              TYPE REF TO if_wd_window,
          lo_api_component  = wd_comp_controller->wd_get_api( ).
          lo_window_manager = lo_api_component->get_window_manager( ).
          lo_window         = lo_window_manager->create_popup_to_confirm(
              text          =  'give your text'
              button_kind   = if_wd_window=>co_buttons_yesno ).
       To set popup window size                                              ------>  OPTIONAL
          CALL METHOD lo_window->set_window_size
            EXPORTING
              width  = 100
              height = 50.
       open popup window
          lo_window->open( ).
          l_api = wd_this->wd_get_api( ).
        subscribe action for NO button
          lo_window->subscribe_to_button_event(
                       button            = if_wd_window=>co_button_no
                       action_name       = 'NO'
                       action_view       = l_api
                       is_default_button = abap_true ).
       subscribe action for YES button      
          lo_window->subscribe_to_button_event(
                       button            = if_wd_window=>co_button_yes
                       action_name       = 'YES'
                       action_view       = l_api
                       is_default_button = abap_true ).
    This will work very well

  • Filter, Information, Chart Buttons in the workbook are not working

    i created a wokbook and done some modification.
    When i click on one of these Buttons ( Filter, Information, Chart ) it is not working. How can i repair it?
    Thank you in advacne.
    Cheers

    Hello Ananda,
    than you for replying.
    How to check if the macro is available for the button?
    The button should work with the macro because once clicking on it it can show information, filter, table , grap and so on.
    I would just want to know how to find the macro.
    Thank you
    Cheers

  • How do I close just the top toolbar, the one with the create button and the Quick Tools?

    Just upgraded from 9 to X.
    The manual says, "When your work does not involve using the tools in a toolbar, you can close the toolbar to tidy up the work area." But then after that it only provides instructions on how to hide all toolbars. I want to have only one row of tool visible, not two, and I can work best with the Common Tools toolbar. So how do I close the other one?

    Would you please be more explicit? I have tried dragging the "Create" and "Customize Quick Tools" buttons from the top row to the second row and they don't drag. I've tried dragging the buttons on the second row into the top row and they don't drag. I've tried dragging the rows themselves into each other and outside the window to see if I could get one to diappear, and they don't drag. So would you please state specifically what is possible in order to reduce the two rows of the toolbar to one row?
    Especially if it's documented somewhere, that would be most helpful to see. But I'm also open to learning an undocumented method, if it works.
    Thank you.

  • How to disable or Invisible the Change and Create button in the PF-STATUS

    Hi all,
    For the table CEPCT, when we display the table entries, there are Create,Change,Display etc button in the standard application tool bar.
    My requirement is to disable or Invisible 2 buttons Create and Change
    Can any one help me in this issue as early as possible
    Regards
    Srinivas

    Hi,
    Check the below statement for more help Press F1
    SET PF-STATUS <MENU> EXCLUDING <FCODES>.

  • Creating buttons on the fly and setting button properties

    If I have a view and want to add buttons to it "on the fly" from values in an array, is that something straightforward to do?
    I have an array of UIImageVIew objects and would like to create buttons from them (showing the image on the buttons) and associate those buttons with a method in my implementation file. That would be a lot more general and flexible than creating the buttons in the Interface Builder I would imagine.
    And one more question - can I freely set button properties while doing that? Or in Objective-C can I only set properties that are already pre-defined for that class?
    Thanks!
    doug

    Thanks for your reply.
    That.... works! Thanks!
    And I can generate the button and click on it and it calls my other method and that works too. Cool!
    The syntax is still very mysterious to me, but I suppose eventually I'll understand what it all means.
    Breaking it down to see what it means:
    [button1 addTarget:self action:@selector(selectedHandler1:) forControlEvents:UIControlEventTouchUpInside];
    * button1 is the object I created (I'm going to try to do this in a loop next.)
    * addTarget is a message I am sending to button1 and the content of the message is "self", which refers to - this button? I'm not sure why such a message would be necessary.
    * action is another message sent to button1 and the contents of that message are a little harder to parse. I see the result, and can mimic the syntax now that I've seen it, but I don't really understand what the @ is for, or the : after the method name or why this wouldn't just be "action: selectedHandler". I'm sure the language designers have a logical reason for all that, but I don't quite "grok" those extra symbols yet.
    * forControlEvents is another message sent to button1 and the event message itself is clear in its meaning.
    Anyway, that is working and I can refer more to the UIButton class reference now and try to set more stuff, like position it better, etc.
    Thanks very much!
    doug

  • How to Create Buttons outside the stage area

    I am able to create my flash project and make it function
    they way I intended, however, I need to be able to place the
    buttons, that control the flash, outside of the flash stage, in a
    different location on the web page, is this possible ?

    Could it be as simple as naming the external button the same
    as the potential flash button, or does the flash movie only
    recognize button presses within the flash movie. I suspect this is
    true.
    Is there any example code that would enable this ?

  • Create Buttons in the Query Designer, is that possible??????????

    Hello,
    When I Start the Query, I want to choose. For Expample:
    For Display the Query with the Rows or not....
    1.Button with Film Production
    2.Button without Film Production
    Can I realize 2 Buttons for that ?`??
    Thanks and Happy Easter..
    Barish
    Edited by: Baris Ozcan on Mar 19, 2008 8:12 AM

    Hi,
    Selections means... your column or row.
    In 7.0 QD .Select your keyfigure from column. right side you can see property window. where you have tab "Display". check that whether it should be "Always show". if it is there, definitely the keyfigure will show the result. and also, if you are not getting any output value, when u r executing the query. check that any filter have u used in Query..
    might be ur query restriction doesn't give any value, that's y ur report looks empty.
    note: there is no Query change mode in BI7.0 query designer, as we have in bw3.5.
    Regards,
    senthil

  • Need to personalize the Remittance screen making 'Manual Create' Button invisible

    Dear All,
    I highly appreciate you people responding to my before questions. All are solved/clarified.
    Below is the requirement from my friend, I am trying to help him. Please suggest.
    In Receivables>Receipts>Remittance screen
    Need to disable the 'Manual Create' button, if the user selects the 'Receipt Method' field as 'XX_REC_METH1'.
    I tried just to disable the 'Manual Create' without the receipt Method condition, even that also doesnt work.
    Version : R12.1.3
    Function Name: AR_ARXRWMAI_REMITTANCES
    Form Name: ARXRWMAI
    Manual Create Button: AR_BATCHES_SUM. REMIT_MANUAL_CREATION                               <block>.<field>
    Receipt Method: AR_BATCHES_SUM.M_REMIT_RECEIPT_METHOD_NAME                            <block>.<field>
    Kindly suggest any work around.
    Thanks a lot in advance.
    Regards,
    Afzal.

    Hi Afzal,
    your question is about an eBusiness Suite form.  Our forum here (and the team that moderates it) deals with Fusion Applications questions.
    Please repost this question in one of these forums that deal with EBS:
    Technology - General Discussion
    Financials
    Thanks for your understanding.
    Regards,
    Oliver
    Fusion Apps Developer Relations
    https://blogs.oracle.com/fadevrel

  • How do I edit the toolbars (not tool set)? for example remove the open and create button.

    how do I edit the toolbars? for example remove the open and create button. with the customize feature I can only find a way to edit the tool set, but I want to edit and rearrange the whole toolbars, that I have only the features needed on one row, instead of the default two rows.
    Thanks for your help
    Andy

    -> [[Uninstalling add-ons]]
    * http://kb.mozillazine.org/Uninstalling_add-ons
    -> [[Cannot uninstall an add-on]]
    -> Uninstalling Toolbars
    * http://kb.mozillazine.org/Uninstalling_toolbars
    Check and tell if its working.

  • PC-UI: Modify the "Create" button in Opportunities

    Hello,
    I would like to change the behavior of the "Create" button in the OIC toolbar in the Opportunities app. Right now when you press this button, a popup asks for the kind of opportunity you wish to create (out of a list of 3), but what we want is a complete new application (think ZCRMD_BUS2000111A, ZCRMD_BUS2000111B, ...) for each kind of Opportunity. So in each of the apps the create button should directly create the correct opportunity and not ask. I know it is asking because there is an event group attached to it, and removing that only triggers the regular create event, but I do not know how to set which opportunity gets created.
    Any hints? I would guess I have to create new access classes for each of the apps and change some method, but after some digging I have not yet found a place where I could change things.
    Any help would be appreciated.
    Thomas

    Hi Abdul,
    this actually sounds pretty much to what I thought was the way to do it. Problem now is that I just don't know how to delete all but the corresponding events from the group.
    Could you tell me how I can do that? Somewhere in SPRO, where I can edit the toolbars and such, or in SE80 in the fill dropdown list box method (as you mentioned) for the model access class? And especially in the last case, any hints for how to do it?
    <i>Edit: Ah, I think what you described in the thread Service order in PCUI is basically the same problem. Will check that now.</i>
    Thanks
    Thomas
    Message was edited by: Thomas Hettenhausen

  • How can i disable a button in the application tool bar of a standard trans?

    Hi Experts,
       I want to disable the create button in the application tool bar of the standard transaction cv03n. Is there any method?

    Hi,
    In the include 'LCV110F19', the GUI is being called for the screen.
    This is the actual code being called.
    WHEN c_dms_create.
          SET PF-STATUS 'D100CREATE'.
          SET TITLEBAR  'D100CREATE'.
    You can try to code something like below.
    DATA: itab TYPE TABLE OF sy-ucomm.
    APPEND 'CREATE' TO itab.
    SET PF-STATUS 'D100CREATE' EXCLUDING itab.
    Kindly reward points by clikcing the star on the left of reply,if it helps.

  • Locate Create button link

    Hi,
    I have to modify the customer screen in AR and add some parameters when the user clicks the Create button in the search (first) page. I have everything running on my local machine but when I investigate the button in jDev I cannot find any properties or code in the controllers that set the destination URL.
    Facts:
    - The button is located in the page (region) oracle.apps.ar.hz.components.account.search.webui.HzPuiAcctSearchResultsRN which is used in the page oracle.apps.ar.cusstd.srch.webui.ArPrtySrchPG
    - Button id: HzPuiCreate
    - Item Style: submitButton
    - Action type: none (seems strange to me)
    - Renderd HTML code: <button id="HzPuiCreate" title="Create" class="x7g" style="background-image:url(/OA_HTML/cabo/images/swan/btn-bg1.gif)"
    onclick="submitForm('DefaultFormName',0,{'_FORM_SUBMIT_BUTTON':'HzPuiCreatevaaF6EQ5'});return false" type="submit">Create</button>Is there anyone out there that have any thoughts on this?
    Regards,
    Daniel

    Yes, the COs are nested.
    I think I found the redirect in one of the controllers in processFormRequest.
    if(oapagecontext.getParameter("HzPuiCreate") != null)
    oapagecontext.putParameter("cusType", s);
    oapagecontext.putParameter("Caller", "AR_CUS_SRCH");
    oapagecontext.putParameter("Mode", "CREATE");
    oapagecontext.putParameter("OAPB", s2);   
    oapagecontext.forwardImmediately("AR_CRE_CUS", (byte)0, null, null, false, "Y");
    }Daniel

  • Won't let me draw buttons or drag shapes to create buttons of drop zones

    Hi I'm using DVD studio pro version 4, and for some reson I can not create buttons with the mouse or from when I drag shapes over. Is there somesort of setting I need to fix, or is my system just acting up?
    Thanks for your time
    mike

    Are you using any Font management software? This problem typically happens when you turn off some of the fonts that DVDSP uses within the app... try turning on all your fonts and see if that helps.

Maybe you are looking for