VBA Code for Excel Add-in Menu Items

Howdy.
Every month my team needs to execute the same process on a couple hundred documents. It's time consuming and inefficient to say the least, so I'm looking for a means by which to call a couple of the menu items on the Excel BPC Add-Ins menu via VBA. Specifically, Park'n'Go; Expand All; and Send and Refresh Schedules.
Basically what happens is this:
Open File
Set Park'n'Go to Live
Expand All
Refresh and Send Schedules
Set Park'n'Go to Offline
Save
Exit
Loop
I know how to loop through the files and directories, I just don't know the commands for the functions from the menu via code. The macro recorder can't help me, and I've even tried to mimic a user's actions by using mouse coordinates and clicks, but that doesn't work b/c it doesn't allow for the necessary load time from BPC.
Any help would be extremely appreciated.

Hey Jeff,
here are some vba commands that may help you.
Open a certain file: (you can assign "Path" to a button or range)
Dim Path As String
Path = Application.GetOpenFilename("All Files (.),.")
Opening the Park 'n Go dialog box:
Application.Run ("MNU_ETOOLS_PARKNGO")
Expand All:
Application.Run ("MNU_ETOOLS_EXPAND")
Sending data and refreshing the workbook:
Application.Run ("MNU_eSUBMIT_REFSCHEDULE_BOOK_REFRESH")
Saving a file OFFLINE:
Dim FName As String
FName = InputBox(prompt:="Please enter filename")
If FName = "" Then
Application.DisplayAlerts = False
ActiveWorkbook.Close
Else
ActiveWorkbook.SaveAs Filename:="c:\" & FName
ActiveWorkbook.Close
End If
Application.DisplayAlerts = True
Hope, that will help you
Karsten

Similar Messages

  • I want to get rid of the Bing screen but there is no "menu at the top of the Firefox window" for me to "select Tools and then select the Add-ons menu item. "

    I suddenly have a "Bing" screen when I sign onto Firefox---and I want to get rid of it. The support section of Firefox says
    1. "From the menu at the top of the Firefox window, seledt Tools and then select the Add-ons menu item."---but I see no "menu item" nor Tools, much less Add-ons.
    2. "In the Add-ons window, click on the Extensions panel."---but how do I find the Add-ons window?
    3. Find the Bing Bar and Search Helper Extension in the list and click Disable for each of them."---but what and where exactly is that?
    At the top of the screen is only a Yahoo icon on the left and to the right of it a search box, "Web Search,", "My Apps," Yellow Pages," "Weather," "Updates," and "Skype." to the right of those there is a green cross saying "Add more apps. to your toolbar" and to the right of that a sort of gear shift looking icon saying "toobar settings."
    So, in short, how do I get rid of the Bing screen and how do I access those Tools?
    Thanks.

    To get rid of Bing Search Window..............
    Click on View tab / Tools and un-check 'Search' (alias for 'Bing')

  • Extract image in PDF file - vba code in Excel

    Hi All,
    I am applying a solution for my company. We have some Front offices which receive customers' requests in paper form.
    We have one Back Office which is receiving the customers' original paper requests from Front Office via courier mail.
    To improve the efficency, I am trying to apply a solution which allow the Front Offices to scan the paper requests into PDF files.
    Those scanned files will be accessed by Back Office to process.
    Given the volume of the requests, it is impossible to open each file in the folder by clicking mouse.
    I have completed the tool (using Excel and vba ) which displays all of the requests (PDF files) as hyperlinks in Excel list.
    The requests are ranked with priority so that the Back Office people know which to process first.
    That solution works well.
    However, Back Office has just requested me to display certain fields in the PDF files as image in Excel's cells so that they can type the information to the system without having to open the PDF files.  The way that the images are displayed on Excel cells is an extraction of part of PDF page.
    I know that in Adobe Reader, I can use my mouse to select part of the area then copy to clipboard, so I hope that we can do the extraction programmatically.
    Could anyone can help me figure out how to implement above extraction solution in Excel vba?
    I am facing 2 concerns:
    1. Acrobat SDK:
    I don't know if my company purchased license of Acrobat SDK or not.  But when I open Excel VB editor, I can see in "Reference" menu the below items:
       + Adobe Acrobat Browser Control Type Library 1.0
       + Adobe Acrobat 9.0 Type Library
       + Acrobat Access 3.0 Type Library
    Are the above enough for my application?
    2. VBA code for extraction of part of PDF files:
    - What should be on the vba code for the extraction?  Which functions I should use?
    Thank you very much
    Cheers

    The functionality that you require is not available to VBA/COM - it is only exposed via C/C++.
    However, you could retrieve the ENTIRE page image to the clipboard and then use whatever VB/VBA methods you choose to grab a section of the image.
    Of course, this all assumes that Adobe Acrobat is installed on each person's computer that will be using the solution since Reader does not have the necessary APIs and Acrobat can't be installed on a server.

  • Add new menu Item in 11g

    Hi,
    I want to Add new menu item in UCM 11g.
    I have done in 10g throught including
    <$include super.custom_finish_layout_init$> and
    // create a collection
         navBuilder.addChildNode();
    but the same is not working in 11g.
    Please assist me in getting menu item in 11g.
    Thanks.

    Hi,
    Check below URL for more information.
    http://blogs.oracle.com/kyle/entry/modifying_navigation_menus_in_ucm
    Thanks,
    Ravinder

  • Help!  How to add a menu item to FNDMENU

    Hi, All
    I want to add a menu item under the "Help" menu of the FNDMENU.
    And this menu item will open a external website such as www.google.com in a new generated IE window when user chick on it.
    So How can I implemented this ? I am a newbie to Oracle Forms builder and Oracle EBS.
    Please give me some hint or materials about writing the processing for menu item.
    Thanks in advance

    Hi,
    You can use the context menu UI element.
    Please check wdr_test_events.
    Regards,
    Lekha.

  • How to add a menu item to the toolbar?

    Hi,
    I try to add a menu item to a module toolbar. However, the methods MenuItemAdd and MenuItemInsert did not work for me. There was no icon, no placeholder, not anything. Deleting of DIAdem predefined icons worked well.
    I tried this one:
    call MenuItemAdd("SCRIPT", "I", "MENUITEM", "TestName", "PicDelete")
    I also tried all combinations of Modules, I, I.1, MenuItem, Unknown, Separator, etc. Nothing produced any result.
    Does anyone have a hint for me?
    thanks in advance,
    Alex.

    Hello Alex Maier,
    with DIAdem 10.0 we provide the following example: "User Defined Menus". Attached you find the relevant script commands.
    I hope this will help you.
    Greetings
    Walter
    Attachments:
    Menu_engl.zip ‏2 KB

  • Add a menu item in context menu at Sales Quotation

    How can I add a menu item in context menu at WH column in sales quotation screen? To access to the context menu, locate an active quotation and right click at an active WH column and a context menu will be shown.

    Hi Cherine,
    You can use the RightClickEvent to add your context menu depending on the position of the right click.
    You have a sample explaining how to use the RightClickEvent in the SDK UI Samples called 22.RightClick.
    Hope it helps
    Trinidad.

  • Add-on menu item not added

    Applies to: Firefox 33.0 and 34.0 (beta)
    Platform: Android 4.4.4 on Nexus 5 32 GB
    When I install an add-on that should add an item to the Firefox menu such as Quitnow or LastPass, the new menu item does not show up. With LastPass, that breaks the add-on entirely since you can't log into the service. With Quitnow, the add-on is rendered similarly useless.
    I have tried clearing app cache/data, uninstalling and reinstalling Firefox, and doing a factory reset on the phone. Results were always the same. No other add-ons were installed.
    Is there a method to get these sorts of add-ons to install correctly?

    The issue isn't that I can't close Firefox. I know that can be accomplished other ways, as you stated. The issue is that add-ons such as the ones listed that SHOULD be able to add menu items aren't installing properly/completely. Thus, the LastPass add-on is entirely broken because I can't log in and set it up as this is done via selecting a menu item that isn't there.
    I only brought up the QuitNow add-on because it's another add-on that should add a menu item, but doesn't. Thus it seems to be a general problem with installing FireFox add-ons and not limited to just one add-on.
    There are no Developer Options enabled. I installed Firefox and the extension on a freshly reset phone using the factory image from Google and had the same issue.

  • Cannot install nor uninstall Analyzer for Excel add-in

    When I try to run the Analyzer installer executable, which was downloaded directly from our BI Publisher server version 10.1.3.2, the installer only asks if I wish to UNinstall the add-in. Since I have no other choice, I say yes, thinking I can start all over. It goes through it's cute little progress bars and states that it finished uninstalling. No matter how many times I run the installer, it always asks if I want to uninstall the currently installed add-in.
    The add-in does NOT appear in the list of installed add-ins inside Excel.
    That's just for starters. If I open an Excel Analyzer template workbook, the 'Oracle BI Publisher' menu appears. When I try to login, it says that the add-in must be updated, so I confirm. Then it successfully connects to our BI Publisher server, and starts downloading/installing various files. But this process terminates with an error, stating that the update process failed, and I will not be able to refresh the data.
    There is an entry in the Windows Add/Remove Programs utillity that corresponds to the Excel Analyzer Add-in. No matter how many times I click the Remove button, this item will not be removed from the list. I have tried uninstalling and reinstalling .NET Framework 2.0 SP1 and repeating this entire process. The result is always the same. I can neither install nor uninstall the Analyzer add-in.
    Is there any way to make the installer re-install the Analyzer without thinking it's already installed? Is there some utility provided by Oracle that will manually remove the mess that is Analyzer for Excel?
    I HATE the Analyzer for Excel, but it's the only interface to our data warehouse that everyone is skilled enough to use.

    After failing to uninstall the program again, I tried using the 'Repair' option of the XMLPReportAddinSetup.msi package. That seemed to finish normally.
    So then I tried to open an Analyzer template file. It opened, but when I tried to use the 'Login' item from the 'Oracle BI Publisher' menu, it said it needed to update the add-in. Instead of updating it, I chose to UNINSTALL the program, because I thought it would now have enough pieces to complete the uninstallation. It still won't uninstall. It is still listed in Add/Remove programs.
    The next time I did the whole process again, and when I got to the point where the add-in says it needs to update from the server, I confirmed. This update again failed with an error.
    I still cannot uninstall the program. I noticed also that the date on the program in the Add/Remove Programs listing is from Sept 30, not today.
    --Joe                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to get active user data using vba code in excel

    Start with this script: http://community.spiceworks.com/scripts/show/1572-list-user-info-in-excel
    Then add an extra line to get the msDS-UserAccountDisabled attribute, or test for it in an If/Else block.

    Could you please help me to get only active user details from active directory using vba code.
    Any help would be immensely appreciated.
    Thanks in advance
    This topic first appeared in the Spiceworks Community

  • Where in code do you land after menu item clicked?

    If I click a menu item and it brings up a dialog box and then I click either ok or cancel on the menu item, how do I find out where in the code I land after exiting that dialog box? Do I have to put in tons of println's or use tons of breakpoints in debug mode to find out? Is there anyway to know where I will land in the code? Thanks.
    Allyson

    I would put in printlns except I have no idea where to put them. I have been putting them sporatically throughout the code, but can't seem to find where I wind up. Do I just wind up nowhere until I click on something else? The reason I am asking is because when I close one dialog box my code is kind of messed up. I have 3 tables. When you click on the first one it changes values in the other 2. Works great. When you chose this menu item and then close the dialog box (either by cancel or Ok), and then click on a different row in the 1st table, the 3rd table changes, but the 2nd one does not. I have printed out what the model2 for the jTable2 should be (using model2.getValueAt(0,0)) and it should be the correct value. If I don't click on the menu to get this dialog box, the tables change like they should. So.... I need to find out where in the code I get to when I close this dialog box.
    Whew! Such a long explanation. I will try the FocusListener, but I really don't want to force any focus on anything. I just want to know where you land in the code (if anywhere). Thanks.
    Allyson

  • MS Project and print automatically a planning per ressource with VBA code for instance

    Hello, i'm in MS project 2010 and i would like to print automatically a planning per ressource (PDF) with VBA code or other quick way.
    Somebody can help me with a simple macro VBA and how to install/use it?
    regards,
    M.

    Probably oyu need the loop:
    Dim Res as Resource
    for each Res in ActiveProject.Resources
        'Apply resource filter then print
    Next Res
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • BPC for excel Add-in Conflict

    Hi,
    I'm trying to find out if there any known excel add-ins that conflict with BPC for Excel (v7) and how the conflicts manifest themselves.
    I am currently specifically interested in conflicts with SAP BW BEx Analyser but would be interested in any others also.
    Would be grateful if anyone could shed some light on this.
    Many thanks

    Usually, Crashing means excel will show crashing error message and restart it.
    Excel will just return excel error message. NOT BPC or 3rd Party ADD_IN error message because it happened at the EXCEL while it is processing request from BPC addin and other 3rd partty Addin. (Of course BEX is SAP product. that's why BPC NW support BEX report in 7.5 but still it is not fully integrated with MS.)
    Sometimes it happens when retriving data from BPC or sending data. As you know those are critical functionality of BPC.
    Again, it depends on the addin but based on my experience, Hyperion Addin and BEX addin had a problem when it runs together with BPC addin.  some simple addin might not have any issue but still recommendation is not using 3rd party addin because we don't know where the error comes.
    Thank you.
    James Lim.

  • Disconnect all active Essbase connections using VBA code in Excel

    Hi All,
    I am currently using the below code to disconnect the active essbase connection. It works fine but it shows me a windows with the list of active essbase connections and I have to select each essbase connection and click disconnect. I want a vba code which will disconnect / kill all active connections of Essbase at one go. for e.g. I have 10 worksheets connected to different databases in Essbase. I want a code which will disconnect all 10 sheets at one go. Please expedite. Thanks for your help in advance.
    Private Sub MDisConn()
    On Error Resume Next
    EssError = EssMenuVDisconnect()
    ErrorBox
    End Sub

    Hi,
    You could use EssVDisconnect which takes a sheet name and does not open the disconnect login box.
    Declare Function EssVDisconnect Lib "ESSEXCLN.XLL" (ByVal sheetName As Variant) As Long
    Sub DisConn()
    X=EssVDisconnect("Sheet1")
    End Sub
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • BEx VBA functions for Excel

    I have a requirement to create a WorkBook from a query that uses a hierarchy. It needs to have a couple of columns that use Excel formulas because there are user input cells that affect the formula. However when I expand or collapse the hierarchy the Excel formulas lose their reference (#REF!). Is there some existing VBA code to reset the worksheet formula references when the hierarchy is expanded or collapsed? Yes I'm using BEx Analyzer 3.5.
    Thank you!
    Al

    I used VBA in the WB as a solution.

Maybe you are looking for