Accessing ribbon via vba ApplicationOptionsDialog

hi,
I am using microsoft access 2010 project (adp). I need to disable the file menu when I distribute the ade to
clients.
the backstage disable has no effect. my customized ribbon below. I only need to a way via vba to turn off the
ApplicationOptionsDialog button! thanks!
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab idMso="TabExternalData" visible="false" /> <tab idMso="TabCreate" visible="false" />
<tab idMso="TabDatabaseTools" visible="false" /> <tab idMso="TabHomeAccess" visible="false" />
</tabs>
</ribbon>
<backstage>
<tab idMso="TabInfo" visible="false"/>
<button idMso="FileSave" visible="false"/>
<button idMso="SaveObjectAs" visible="false"/>
<button idMso="FileOpenDatabase" visible="false"/>
<button idMso="FileCloseDatabase" visible="false"/>
<tab idMso="TabRecent" visible="false"/>
<tab idMso="TabNew" visible="false"/>
<tab idMso="TabPrint" visible="false"/>

One thing to remember is that backstage commands ONLY work for the system wide ribbon. In other words, you cannot place backstage commands in a ribbon assigned to a given form/report.
And as noted here, your schema definition needs to be changed from:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
To
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
As a general rule, the older ribbon format will work, but not if you using new 2010 features. So backstage commands ONLY work in the application wide ribbon specified for startup. And you need to use the 2009 schema as opposed to 2006 schema.
Regards,
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada

Similar Messages

  • Control BEx Analysis Grid context menu entries via VBA

    Hey Forum,
    I have kind of a tricky question for you. I want to control BEx Analysis Grid context menu entries via VBA, namely the Expand Hierarchy Node function when I right click on a Hierarchy node entry.
    Does anyone know how to access this function via VBA?
    I also thought about adding a BEx button and access it via VBA but I am lacking the correct Button Parameters to expand/collapse a hierarchy node.
    Anyone has a tipp for me?
    Thanks,
    R.

    Hello, DDrazdou and All too
    Did you have any information about requested function?
    I need to call binded transaction in R\3, and meanwhile, I just write wrapping functional module in the R\3, and making RFC call from VBA...
    It seems to work fine, but may be the better(standart) way is posible.
    with best regards, Alex.

  • Connecting Microsoft Access with Primavera via VBA

    I'm Primavera expert and Microsoft Access as well
    I want to know where to start to learn how can I establish a connection or session with Primavera from Microsoft Access via VBA.
    Thank you
    Emad

    Hello,
    I'm not familiar with Primavera P6 and Access. May be you should post the question in the
    Oracle Primavera forum.
    The following thread is about similar issue, you can try to use primavera SDK provider or ODBC connection:
    http://www.planningplanet.com/forums/planning-scheduling-programming-discussion/527878/primavera-p6-software-development-kit-sdk
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • The ForEach Loop Enumerator is Empty - SSIS Error when executing through CMD via VBA

    I am currently working on a SSIS package that is to be triggered through CMD via VBA (Access). All that the package does is read a bunch of files from a folder and upload them into a table in SQL Server. The tricky part comes is that this folder location from
    which the package is to read the files is dynamic.
    I figured out a way to make it dynamic, by using variables
    I have used the following variables:
    "Directory" against DIRECTORY in COLLECTION>>EXPRESSIONS in the ForEachfile Enumerator,
    "FilePath" (With Index 0) in the Variable Mappings
    PROBLEM : As the final link in the chain, I have used following to be triggered from VBA
    dtexec \f "C:\Desktop\SSISAppend.dtsx" /Set "\Package.Variables[User::Directory].Property[Value];C:\Desktop\AppendFiles"
    When I try to execute the package using the above command, it gives out the error
    Code : 0x8001C004
    Description: The For Each File Enumerator is empty. The For Each File enumerator did not find any files that meatched the file pattern, or the specified directory was empty.
    But, when I run the package from MS VisualStudio 2008, the package runs fine, takes the location of the file assigned to the variable "Directory". 
    All help is appreciated

    Where are you executing the package from? You're giving an aboslute path so this will work only if package as well as the folder is in the same machine from which you execute the above code. Otherwise you need to use UNC path.
    Another thing to check is what login is executing the command and you need to ensure it does have access to the directoty path as well as to the path where package resides.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Problem accessing mail via Safari browser

    How do I access iCloud Mail via my Safari browser on my iPhone? If I go to iCloud.com it just offers me the option to install it on my phone.
    The problem is, I already have it installed on my phone and it works fine EXCEPT at my new job - the wifi is not very good and I can access internet/Facebook etc but every time I try and load email it always says it 'cannot find the server .' I therefore tried to access email via safari browser - my other email provider works fine that waybut iCloud doesn't even give me the option to login, just keeps suggesting I install it.
    Any ideas how I can check iCloud email at work? Can't do it on work computers, site is blocked....and there is no 3G/4G signal.
    Thanks for any advice!

    According to http://support.apple.com/kb/PH2618 you should be able to access it via a browser by going to https://www.icloud.com/#mail

  • I would like to free up some space on my computer and move my iphoto library to the time capsule and easily access it. Also, would I be able to access them via the TC if I purchased a new computer?

    I am using my TC as an external hard drive, I would like to remove my photos from my computer to free up space. I'm wondering:
    1. Once the photos are moved, how do I access them via the TC, AND will i still be able to print them and see them the way they were set up in my iphoto on the computer?
    2. If I purchase a new computer, will I still be able to access them just as easily?
    3. What is the process to move the photos to the TC?
    I am afraid that if I "erase" them from my computer I will not be able to access them.

    Are you still using iphoto?
    If so you should NOT move the iphoto library to the TC and use it.
    Apple says you will corrupt the library doing this.
    http://support.apple.com/kb/TS5168
    Although mostly about FAT32  it adds network drives.
    http://support.apple.com/kb/HT1198
    Now what I cannot tell you is if the same rules apply to the new photo app. Apple might have fixed the problem.
    For iphoto you should offload the photos to USB drive plugged into your computer.. or any external drive.. the faster the interface the better.
    Apple have explicit instructions for moving the library.
    iPhoto '11: Move your iPhoto library to a new location

  • Can't access photos via windows, everything else works iTunes, external software etc.

    Hello,
    Since I installed Windows 8.1 I have quite big problem, can't access photos via windows explorer. iTunes and other software can see phone and works completely fine.
    There is error 28 in device manager.
    Tried uninstalling all services including iTunes itself and got latest iTunes today and still no luck.
    Anybody knows solution to this ?
    (iPhone 4S iOS 7.0.4)

    Is it just me, who got this issue ?

  • Can no longer access Facebook via Safari on iPhone

    Ever since I loaded IOS 6 onto my iPhone 4, I cannot get to Facebook via Safari...it automatically reverts to the fb app. Even if I put www.facebook.com into the browser. I still access fb via Safari on my ipad (new ipad). This is important as I have low vision and the font is too small on the app.

    I have the problem after upgrading my iPad to iOS 6.
    It started with the app store, then facebook app and finally can't access to any apple.com page.
    Already restore the iPad and now I can access to app store. Still working to get back my access to facebook.
    If anyone has an idea about this?

  • Static NAT causes unable to access server via internal IP

    Hi all,
    Need some help. I running site-to-site IPsec VPN in Cisco 2811 IOS 12.4 both site. Here I encounter a problem to access server on  Site A from Site B
    Site A having Leased Line connected to router with Public IP. I have done static mapping 1 web server to Public IP (NAT). This to allow external users to access the server via Public IP. At the same time, users at Site B would need to access to same server via Internal IP since they have Site-to-Site VPN established. But once I done Static Mapping (NAT), user at Site B unable to access the server at Site A using its internal IP. But external user can access server via Public IP. What went wrong here. Do i need to add extra command to get this done? We really need this.

    Hi sheik,
    I'm accessing the server form Site B using its server's LAN IP.
    If I remove the static NAT statement from my router at Site A, everything works well. I can access the server from site B using its LAN IP via Site-to-Site VPN. But in this case, external users unable to access server via Public IP since no Static NAT statement.

  • Unable to access internet via my airport extreme base station

      I have an AirPort Extreme Base Station which is hard wired to a Mac and which communicates wirelessly to a Mac in another room.  My internet access is via comcast.  Direct connection from this computer to my modem works fine, but not if I go through the AirPort.  The LED lights of the AirPort indicate normal network activity, (flashing/on/flashing).  I have tried disconnecting and reconnecting everything and rebooting the computer.  The system has been working normally through the AirPort until today.

    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    (OPTIONAL) Disconnect the AirPort base station from the Internet broadband modem.
    (OPTIONAL) While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    (OPTIONAL) After the base station resets, go ahead and power it back down.
    (OPTIONAL) Reconnect the AirPort base station to the Internet broadband modem. For the Extreme and Time Capsule, be sure to connect the cable to the base station's WAN (circle-of-dots) port.
    Power-up the modem; wait at least 10-15 minutes to allow it adequate time to initialize.
    Power-up the AirPort base station; wait at least 5-10 minutes. Note: The AirPort's status light may continue to flash amber after it has intialized. That is because, there may be some additional configuration items necessary, like setting up wireless security, before the overall setup is completed to get a green status.
    Power-up your computer(s).
    In this basic configuration, the AirPort base station will broadcast an unsecured wireless network with a Network Name (SSID) of Apple Network NNNNNN. Network clients, connected to the base station either by wire or wireless, should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options. Please post back your results.

  • HT5621 Two days ago I changed my apple id.  Itunes recognizes my new apple id when I access itunes via the computer. when I try to make a purchase or update my apps on my iphone, it asks to give the password to the old apple id.  How do i change it on my

    Two days ago I changed my apple id.  Itunes recognizes my new apple id when I access itunes via the computer. when I try to make a purchase or update my apps on my iphone, it asks to give the password to the old apple id.  How do i change it on my iphone?

    Apps and music are forever tied to the Apple ID under which they were purchased.  If you don't want to continue to get that message, delete the apps and purchase them again with your new Apple ID.

  • Using Interactive Report with SQL query accessing tables via db link

    Is there a known issue with using the interactive report in version 3.1.2.00.02 with SQL that is accessing tables via a database link? I get the error 'not all variables bound', I do not get this error when using the standard report for the same SQL?
    Thanks,
    Edited by: [email protected] on May 26, 2009 2:59 PM

    Varad,
    Good question, failed to check that. In fact there are errors. Dump file c:\oraclexe\app\oracle\admin\xe\bdump\xe_s002_3640.trc
    Mon Jun 15 08:48:11 2009
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Windows XP Version V5.1 Service Pack 3
    CPU : 2 - type 586, 1 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:1051M/2038M, Ph+PgF:2273M/3934M, VA:1302M/2047M
    Instance name: xe
    Redo thread mounted by this instance: 1
    Oracle process number: 16
    Windows thread id: 3640, image: ORACLE.EXE (S002)
    *** ACTION NAME:(PAGE 2) 2009-06-15 08:48:11.743
    *** MODULE NAME:(APEX:APPLICATION 112) 2009-06-15 08:48:11.743
    *** SERVICE NAME:(SYS$USERS) 2009-06-15 08:48:11.743
    *** CLIENT ID:(ADMIN:232384011651572) 2009-06-15 08:48:11.743
    *** SESSION ID:(24.931) 2009-06-15 08:48:11.743
    *** 2009-06-15 08:48:11.743
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_LdiDateFromArray+55] [PC:0x608B04F3] [ADDR:0x0] [UNABLE_TO_WRITE] []
    Current SQL statement for this session:
    select Stage,Procedure,Stp,FW,Reslt,MSG,date_run
    from bi_msg_VW@dwitnm
    order by 1
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    2FE1EA14 1207 package body SYS.DBMS_SYS_SQL
    2FE1F064 328 package body SYS.DBMS_SQL
    2ABDC520 5097 package body APEX_030200.WWV_RENDER_REPORT3
    2BD5E55C 1538 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    2BD5E55C 366 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    335BDA88 11190 package body APEX_030200.WWV_FLOW
    2BDBD1C8 255 procedure APEX_030200.F
    2AB58D10 30 anonymous block
    ----- Call Stack Trace -----
    I didn't include the call stack, it is too large. Now I'm even more puzzled that the IR would work while a sql report would fail.
    Bob

  • How to set variables values via VBA.

    Anybody please help.
    How to set variables values via VBA in workbook. SAP Netweaver 2004s.

    Pass variable values with VBA and BI 7.0 funtions to Query
    At first a remark u2013 Iu2019ve read a lot of threads saying that passing values to a query can be done by using VBA code only. Iu2019ve tested it but Iu2019m not sufficient with the new BEX 7.0 API and therefore I use a mixture of BEX 7.0 funtionality and VBA. I create a BEX 7.0 design item button passing the values to a query u2013 I hide this button somewhere on the sheet or on a hidden sheet and I then raise the event to click the button from VBA code. Works fine and the maintenance is easier if something changes in the API in the future again.
    How to start:
    Switch to design mode in BEX Analyzer:
    Implement a BEX 7.0 design item u201Cbuttonu201D
    Click on the button to implement the properties
    Make the input for the commands
    data_provider = dataprovider_1
    cmd = process_variables
    subcmd = var_submit
    No comes the part with the variables u2013 Letu2019s assume a query has 4 variables but you only want to change 1 with the button u2013 an organizational unit for instance.
    Make a range somewhere in the excel with the following structure:
    Name    Index   Value
    VAR_NAME_1      1       Variablename
    VAR_VALUE_EXT_1 1       variablevalue
    Value should contain the name of your variable of course and u201Cvalueu201D the value of your variable
    Set a name for this range with EXCEL functionality but without the header:
    Back to the properties of the button: Insert the name of the range with the variables in the field Command Range:
    If you have more variables to process you can of course enhance your Filterrange!
    In the left upper Corner you have a name for your button:
    Now you can raise the button-click in vba like this:
    Application.Run "'" & ThisWorkbook.Name & "'!Sheet2.BUTTON_35_Click"
    regards, Lars

  • HT4199 Need to access WiFi via PC. How to connect IPad to PC tower? Is an adapter part needed?

    Need to access Wifi via PC. How to connect IPad to WiFi via PC Tower? Ia an adapter needed? Any help is appreciated.

    To what purpose?
    If you are trying to share internet connection-you need to enable that in the OS on the computer.

  • How can i add to Outook 2013's ribbon using VBA and/or get a ribbon button's name within a macro?

    Everything I found on Google for this question refers to Excel or Word and what they say doesn't work for Outlook.
    I need to be able to do two things:
    Add buttons to a custom group on the "Home" tab of the Outlook 2013 ribbon using VBA from within Outlook 2013.
    Within the macro that runs when each button is clicked I want to be able to tell the name of the button that was clicked.
    For #1: I cannot find any useful information online.
    For #2: The idea is that I want to have a variable number of buttons like "Do 1", "Do 2", "Do 3", ..., "Do X" and each of them would run the same macro/sub and within the macro/sub I can see what the name of the button
    is so I know what to do. Otherwise I'd have to create a sub/macro for each button and I'm trying to avoid that.

    Hi IMThreNachoMan,
    >>Just to confirm, I can have the ribbon run a normal macro (Sub Blah()) but not if it tries to reference the ribbon (Sub Blah(c as IRibbonControl))?<<
    I've tested it on managed project, it works as expected, but it seems the *.OfficeUI file makes the VBA as an expectation.
    I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated. Sorry for any inconvenience and have a nice day!
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Airport extreme. XP outlook can no longer connect

    Since October My wife and I can no longer connect to our office servers using outlook on PC's via Airport extreme wireless. Both our g5 and g4 have no problems. The PC's indicate excellent signal and status says "connected "thru our VPN connections t

  • Why does my usage add up to 9 but remaining is 18 on a 32 gb mini

    Why does my usage add up to 9 but remaining is 18 on a 32 gb mini

  • Keep getting Error Code 12 while attempting to use VXI-8360 ExpressCard

    Using Dell XPS M1530 laptop running Win XP SP3.  Everything ran great with same hardware back in September 08.  Now I am getting Error Code 12, "This device cannot find enough free resources that is can use. (Code 12)".  I have tried disabling other

  • Adobe Pro 9 - Livecycle

    I have a user that is using the livecycle program which came part of Adobe Acrobat 9 Pro and she keeps getting an application failure error when trying to open the program. I have attempted to re-install the program with no success, prior to that a r

  • Script for Batch Exporting XML from IDCS3 files

    Does anyone have a script they would share for batch exporting XML from IDCS3 files? I do not know anything about scripting so I do not know how to write one myself. I've also searched around and cannot find anything. I would appreciate any help with