Solved

Run a sub from a click or toggle in a userform in Excel 2007

Posted on 2011-02-16
3
226 Views
Last Modified: 2012-05-11
I need to start a module running so I would like a front end for the user to start the code.  I would like to create a simple userform and execute;
Sub MainProcessing()
    Select_A_File
    GetMarData
End Sub
0
Comment
Question by:eht9250
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Michael74
ID: 34913162
why not just a button to the sheet and in the on click event call the required sub
0
 
LVL 23

Accepted Solution

by:
Michael74 earned 50 total points
ID: 34913189
More complete answer now I am back at my desk

To add a button to you workbook
http://office.microsoft.com/en-us/excel-help/add-a-button-and-assign-a-macro-to-it-in-a-worksheet-HP010236676.aspx

You can also assign a shortcut key to the macro

http://www.lytebyte.com/2008/10/06/how-to-create-custom-keyboard-shortcuts-in-excel-2007/

Michael
0
 

Author Closing Comment

by:eht9250
ID: 34913469
I so much appreciate the quick response!  Makes all the difference.  Thank you.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel (XLSM) on iPad 3 39
Systems Integration Testing - recording the scenarios and results 1 12
Problem to macro 5 24
HOW MANY PAIR 11 11
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question