SOLVED

Excel 2016 creating button functions without using VBA / Macros

%3CLINGO-SUB%20id%3D%22lingo-sub-1599431%22%20slang%3D%22en-US%22%3EExcel%202016%20creating%20button%20functions%20without%20using%20VBA%20%2F%20Macros%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1599431%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20creating%20an%20excel%20document%20in%202016%20and%20need%20to%20use%20buuttons%20to%20trigger%20some%20functions.%3C%2FP%3E%3CP%3ETHis%20is%20goingto%20be%20housed%20in%20Sharepoint%20and%20becasue%20of%20this%20and%20ourr%20ICT%20restrictionson%20macros%20in%20workbooks%20Macros%20and%20VBA%20as%20.XLSM%20files%20do%20not%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20only%20option%20is%20to%20use%20functions%20and%20formulas%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETHere%20are%20existing%20Buttons%20on%20the%20toolbar%20that%20you%20can%20use%20to%20perform%20the%20function%20i%20need%20I%20am%20trying%20to%20replicate%20that%20function%20as%20a%20button%20press%20on%20screen.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20Main%20Function%20I%20am%20trying%20to%20do%20is%20a%20simple%20Clear%20all%20filters%20button.%20effectively%20when%20you%20press%20the%20button%20it%20emulates%20the%20pressing%20of%20%22ALT%2BA%2BC%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethere%20is%20no%20option%20I%20see%20to%20assign%20this%20keyboard%20function%20to%20a%20shape%20in%20excel%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20can%20someone%20help%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1599431%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1599624%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%202016%20creating%20button%20functions%20without%20using%20VBA%20%2F%20Macros%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1599624%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F764749%22%20target%3D%22_blank%22%3E%40Stuart_Bean%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20button%20on%20a%20worksheet%20can%20only%20execute%20VBA%20code%2C%20so%20that's%20out.%3C%2FP%3E%0A%3CP%3EYou%20can%20add%20the%20Clear%20All%20Filters%20button%20to%20the%20Quick%20Access%20Toolbar%20for%20that%20specific%20workbook%2C%20so%20it%20will%20be%20available%20to%20everyone%20who%20opens%20the%20workbook%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EClick%20the%20dropdown%20arrow%20on%20the%20right%20hand%20side%20of%20the%20Quick%20Access%20Toolbar.%3C%2FLI%3E%0A%3CLI%3ESelect%20'More%20Commands...'%20from%20the%20dropdown%20menu.%3C%2FLI%3E%0A%3CLI%3ESelect%20the%20active%20workbook%20instead%20of%20'For%20all%20documents%20(default)'%20from%20the%20Customize%20Quick%20Access%20Toolbar%20dropdown%20in%20the%20upper%20right%20corner.%3C%2FLI%3E%0A%3CLI%3ESelect%20'Data%20Tab'%20(or%20'All%20Commands')%20from%20the%20'Choose%20commands%20from'%20dropdown.%3C%2FLI%3E%0A%3CLI%3ESelect%20'Clear%20All%20Filters'.%3C%2FLI%3E%0A%3CLI%3EClick%20'Add%20%26gt%3B%26gt%3B'%3C%2FLI%3E%0A%3CLI%3EIf%20desired%2C%20use%20the%20up%20and%20down%20arrow%20buttons%20on%20the%20right%20to%20move%20the%20'Clear%20All%20Filters'%20button%20to%20the%20desired%20position.%3C%2FLI%3E%0A%3CLI%3EClick%20OK.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22S3481.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213350i6C87280680DC0AB9%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22S3481.png%22%20alt%3D%22S3481.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1599654%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%202016%20creating%20button%20functions%20without%20using%20VBA%20%2F%20Macros%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1599654%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F764749%22%20target%3D%22_blank%22%3E%40Stuart_Bean%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Stuart%2C%3C%2FP%3E%3CP%3EIn%20the%20Active%20Controls%20the%20toggle%20button%20can%20be%20linked%20to%20a%20cell%20to%20give%20you%20a%20true%2Ffalse%20entry%20in%20the%20cell.%20Aside%20from%20a%20formula%20giving%20an%20answer%20when%20true%20and%20a%20blank%20when%20false%2C%20there%20is%20no%20way%20to%20make%20a%20formula%20perform%20%22tasks%22%20of%20a%20functional%20nature%20without%20macros.%20Hans%20is%20correct.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1599744%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%202016%20creating%20button%20functions%20without%20using%20VBA%20%2F%20Macros%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1599744%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThankyou%20very%20much%20for%20confirming%20what%20I%20was%20starting%20to%20accept.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20done%20the%20customised%20bar%20and%20it%20seems%20to%20work%20acceptably%20however%20there%20is%20no%20way%20of%20making%20the%20button%20clear%20to%20the%20inexperienced%20user%20(this%20is%20why%20I%20wanted%20to%20use%20Big%20coloured%20buttons.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20hoping%20to%20have%20this%20spreadsheet%20work%20direct%20of%20the%20sharepoint%20so%20the%20users%20didnt%20have%20to%20download%20it%20(as%20there%20are%20monthly%20updates%20that%20they%20may%20miss)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20there%20are%20other%20functions%20I%20want%20on%20this%20workbook%20I%20know%20won't%20work%20without%20VBA%3C%2FP%3E%3CP%3EI%20am%20looking%20at%20allowing%20the%20user%20to%20download%20and%20have%20a%20macro%20run%20that%20check%20the%20version%20(date)%20and%20update%20and%20save%20the%20the%20file%20if%20necessary%20when%20they%20open%20the%20document%20(this%20could%20be%20a%20big%20task)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20it%20will%20get%20aroud%20the%20fact%20that%20sharepoint%20doesn't%20like%20Macro%20files%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETHankyou%20for%20your%20help%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello 

 

I am creating an excel document in 2016 and need to use buuttons to trigger some functions.

THis is goingto be housed in Sharepoint and becasue of this and ourr ICT restrictionson macros in workbooks Macros and VBA as .XLSM files do not work.

 

My only option is to use functions and formulas

 

THere are existing Buttons on the toolbar that you can use to perform the function i need I am trying to replicate that function as a button press on screen.

 

The Main Function I am trying to do is a simple Clear all filters button. effectively when you press the button it emulates the pressing of "ALT+A+C"

 

there is no option I see to assign this keyboard function to a shape in excel

 

Please can someone help

 

 

3 Replies
Highlighted
Best Response confirmed by Stuart_Bean (New Contributor)
Solution

@Stuart_Bean 

A button on a worksheet can only execute VBA code, so that's out.

You can add the Clear All Filters button to the Quick Access Toolbar for that specific workbook, so it will be available to everyone who opens the workbook:

  • Click the dropdown arrow on the right hand side of the Quick Access Toolbar.
  • Select 'More Commands...' from the dropdown menu.
  • Select the active workbook instead of 'For all documents (default)' from the Customize Quick Access Toolbar dropdown in the upper right corner.
  • Select 'Data Tab' (or 'All Commands') from the 'Choose commands from' dropdown.
  • Select 'Clear All Filters'.
  • Click 'Add >>'
  • If desired, use the up and down arrow buttons on the right to move the 'Clear All Filters' button to the desired position.
  • Click OK.

 

S3481.png

 

Highlighted

@Stuart_Bean 

Hi Stuart,

In the Active Controls the toggle button can be linked to a cell to give you a true/false entry in the cell. Aside from a formula giving an answer when true and a blank when false, there is no way to make a formula perform "tasks" of a functional nature without macros. Hans is correct.

Highlighted

@Hans Vogelaar 

 

Thankyou very much for confirming what I was starting to accept.

 

I have done the customised bar and it seems to work acceptably however there is no way of making the button clear to the inexperienced user (this is why I wanted to use Big coloured buttons.)

 

I was hoping to have this spreadsheet work direct of the sharepoint so the users didnt have to download it (as there are monthly updates that they may miss)

 

As there are other functions I want on this workbook I know won't work without VBA

I am looking at allowing the user to download and have a macro run that check the version (date) and update and save the the file if necessary when they open the document (this could be a big task)

 

but it will get aroud the fact that sharepoint doesn't like Macro files 

 

 

THankyou for your help