Exclude possibility of Ribbon in Excel 2013 - excel

I've sought for a solution everywhere:
I've made a user program (in EXCEL) where the user shouldn't be able to change anything concerning the formatting (colour, width, fonts, comments ... etc. etc.): the user is only capable to see the tables in the (visible) sheets on the screen and the tabs "chooser".
The user can actively only edit in the cells. I use extensively sheet protection, shortcuts, scrollarea and my userdefined contextmenu to achieve what I want. With my +400kB VBAcode.
It works perfect in Excel 2007 (and I think for Excel 2010)!
For the ribbon to not appear I use:
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"", False)"
But not in Excel 2013! I use massively the [ALT]-key for my shortcuts, but when pressing it, the ribbons formatting options appear.
I've seen examples using:
CommandBars.ExecuteMso "HideRibbon"
But it is not a solution as it is always possible for the user get to the Autohide ribbon/Show Tabs/Show Tabs and Commands in the right upper corner.
Is there a way to get "rid" of the ribbon in Excel 2013 and by no means (except VBA) to get it back. Specially the [ALT]-stroke form the user shouldn't be able to call it.
EDIT
I've added an image showing a section of what it looks like having NO Quick Access Bar or Ribbon in my EXCEL 2007. There is only the MS titleline, a plein table and some tabs (sheets) to chose.

Related

Creating a button on Excel Ribbon to open Userform Window

I have developed a VBA userform interface that allows the user to input values, have it calculate results, and then print them out into the worksheet. I am wondering if there is any possible way that I can have a button on the excel ribbon, say under the "Data" tab for instance, that would elicit the userform interface to open.
Currently the only way I can use the interface is by Developer>>Visual Basic>>Clicking on Userform>>F5. This also limits the userform in that it can only be used in one particular workbook as opposed to many. Or if it was somehow possible, to make it an add-in instead.
Any help is greatly appreciated!
The easiest way to add custom tab and/or button to Ribbon is to use Custom UI Editor Tool for MS Office Ribbon. Follow the links provided in comments to your question too. There you'll find many useful information.

Creating new xlm macros in excel 2007

Is it still possible to create (note create: not run) xlm macros in Excel 2007? I have an interest in historical languages (yes, I know xlm macros aren't going that far back in the grand scheme of things) and want to muck around with them.
I've searched the web and there's a million hits for how to enable support for legacy xlm macros, and that's all well and good. But I'm looking for info on how to create new ones. Would someone be able to point me in the right direction?
To create a macro sheet in XL2007 - Right-click a sheet tab, choose Insert and then Excel 4 Macro sheet.
It may or may not need a macro sheet. But the actual question was how to create the macro itself. It must be declared as a macro. In XL 14, which still supports XL4 macros (Excel macros, as opposed to VBA macros (Visual Basic macros)), you write a series of XLM commands in a column. It will be executed top down. To declare it, you select the top cell of that range, then under the 'insert' menu, under the 'name' submenu, pick 'define'. Give it a suitable name and hit 'add'. Then select it within the same dialog, and radio buttons will appear below. They will offer 'command', 'function', or 'none'. Choose command or function, as appropriate.

VBA control over the ribbon?

I am in the process of creating a VBA add-in for Excel 2010, and I used the "Custom UI Editor for Microsoft Office" tool to create my own ribbon.
However, I would like to give the user the option to load my add-in without displaying the ribbon, or with different parts of the ribbon visible.
With menus, I know you can completely control them programmatically, but ribbons seem to work differently.
Is there a way in VBA to not load my customUI.xml ribbon tabs on startup?
Is there a way to remove items from (or add items to) these tabs at runtime?
here is a whole slew of help on this subject Awesome Ribbon Help. I think points 2 and 3 are of particular interest to you.

Excel 2007 Combo Box - Developer Ribbon vs. VBA Module

Could someone please explain to me the difference between the combo box that's available via the Developer Ribbon in Excel 2007 vs. the Combo Box control that's in the VBA editor? I cannot get this simple line of code to work using the Developer combo box:
MsgBox Combo1.Value
I've tied it to the change event and it seems to be syntactically correct (I'm not a VBA coder by any stretch).
Is the Developer Ribbon version some bastardized craptastic Microsoft shortcut?
What I'm trying to do is populate a second combo box based on the selection of the first combo box. I'd rather not build a case statement for every possible selection. Is this possible using the Developer ribbon version?
You are talking about the Insert button on the Developer tab correct? From that button you can add an ActiveX control or Form control. You're better off using the form controls if your new to programming as they will behave more in line with any Excel VBA reading you've done and the help file. With the Form controls you can right click and choose 'View Code' and/or 'Rename Control and Code'. Renaming the control allows you to address it in VBA however you like. e.g. - Combo1.value or myFavoriteCombo.value
That being said, to answer your question directly, be sure you know the controls full name. If you used a form control and it was the first one you put on the sheet it will be named ComboBox1. To get to the combobox's properties you have to walk through it's 'parent' sheet.
i.e.
MsgBox Sheet1.ComboBox1.value (using the sheet's code name)
or
MsgBox Worksheets("SheetName").ComboBox1.value (using the sheets name as it appears on the Excel tab)

How do I add a form in an Excel sheet?

How can I add an input form in an Excel sheet. I want to insert values into an Excel cell using the form.
ALT+F11 starts the VBA editor in Excel. In there you can create UserForms (Insert | UserForm) which you can bind into their own modules or attach to worksheets.
I suggest you look at the Excel help or MSDN for details of what you can do with UserForms. There are also a lot of VBA tutorials on the web for exactly this sort of thing. Google is your friend.
HTH
There is a quick and dirty method of creating simple forms in Excel. No VBA is required.
First, create a table with the basic format that you want.
E.g.
A B C
1 Name Age Favourite Animal
2 Jane 11 Horse
Select the range, and then select Data | Form. (This is in Excel 2003.)
It will open up a simple form that allows navigation, creation, deletion, and searching.
#Oddthinking,
Cool trick. Never knew it existed. I had to do a little looking, but you can do it in Excel 2007 as well.
Click the Office button, select Excel Options, go to the Customize tab
Select 'Commands Not in the Ribbon' from the 'Choose commands from' drop down
Find 'Form' in the list and click Add, then click OK
At this point, the Forms command will show up on the Quick Access toolbar, next to the Save and Undo/Redo icons.
You have to activate the form toolbar.
Of course, IIRC, the form must be handled by VBA code.

Resources