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.
Related
Can anyone please help me with excel issue. I have created a dynamic dashboard in excel using sumifs on data layer and index match functions on presentation layer. I have placed a simple List box form control with no VBA or macro.
My dashboard was working fine, without any issue, but on final step I was just trying to make the List box control float on the sheet with scrolling.
I found a vba code, I opened vba from developer mode, pasted code, but that deleted same.
Since then upon any selection of List box item, it is giving me error “ Cannot run the macro Listbox4_Change. The macro May not be available in this workbook or all macros disabled.”
I have tried pretty much every thing I found on google. Created a macro and deleted, copied one line code in all sheets of vba and deleted, enabled Macro security setting, but nothing really is working .
I am stuck badly.
It sounds like you've added a macro and then removed it, but haven't removed the macro assignment on the list box.
Right-click on the control and choose Assign Macro, delete the Macro name, and hit OK.
I wrote several macro with SAP scripting and other features.
For few of my macros, i need to select a cell, and then run the macro.
All these macros are stored in a add in, hence all my macros are available on every workbook.
I would like to share my addin with my colleagues but I would like to make the macros available from the right click menu.
All pieces of code found here and elsewhere indicate to have a piece of code located in "thisworkbook" tab. Hence the custom right click menu is only available on a specified workbook.
Is it possible to have my macro stored in my add-in accesibble from right click menu for all workbook that I open/use ? like the macro ribbon ?
thank you
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.
I have a bunch of csv files that I create everyday and that I want to format nicely with colors and stuff.
So I wrote a macro that do all I want.
Now I'm looking for the most practical way to call that macro from Excel.
It looks like macros are stored in the spreadsheet and can't be "global" or "external".
So when I open a csv, I need to create a new macro, paste my vb code, and run it.
It would be great if I could add a button to Excel toolbar, or at least open a menu that will let me select the macro and run it.
It looks like one answer could be to create an excel add-in, but I'm not sure this is the right way to go.
Thanks a lot for your help
This will work with a so-called "Personal Macro Workbook". In Excel 2010, it will be called Personal.xlsb and reside somewhere in your users directory.
See http://office.microsoft.com/en-001/excel-help/copy-your-macros-to-a-personal-macro-workbook-HA102174076.aspx for details. This also applies with small variations to other versions of Excel.
I'm working on a spread sheet that someone else created and am having trouble in identifying which macros are assigned to the different objects. When I right click to :assign", it doesn't tell me what is already assigned. Is there a way to find out?
When you right click and select Assign Macro it should have the macro name already entered in the cell at the top, above the list of available macros. Alternatively clicking Edit should take you to the code. This works for Excel 2007 - you don't stipulate which you are using.
As a last resort, assuming you don't have masses and masses of macros, go to the VBE and put a break (click in the left margin to make it highlighted red) on the first line of each Sub/ Macro, then when you click the object it will take you to the VBE and highlight the line it stopped and thus the macro assigned.
If the objects the macro assigned to is grouped, excel doesn't show the macro assigned. Ungrouping objects will allow you to see which individual item actually has the macro assigned.