Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Macro or VBA on Button

Status
Not open for further replies.

chadlmiller

IS-IT--Management
Feb 14, 2008
27
US
OK this is a two part question.
First, if I can creat a button to run a Macro fine or VBA fine; which would you recommend if the Macros security issues are different between Orgs using a templated Excel spreadsheet.

Second, what I need the macro/script to Execute.
I have a data template (DATA Sheet)that the staff will complete. Once it is complete, I have three "Hidden sheets" (H1,H2,H3)

I only want the staff to use the data template to fill in the data as required. Once they complete the data it is validated manually. Once that is complete, I want three buttons:
One will run a Script on "Select" call it "AB" the script should begin to "save as" sheet "H1" as a .txt text file. tab delimited.

Second will run a Script to "Select the Button" call it "nom" And when I have done so the script should begin to "save as" sheet "H2" as a .prn file

Third will run a Script to "Select the Button" call it "dat" And when I have done so the script should begin to "save as" sheet "H3" as a .prn file

Vista windows, and Excel 2007.

Any additional information you require let me know.
 


Hi,

Macro or VBA (these terms are used interchangably) questions are best addressed in forum707.

Please repost in forum707.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top