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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need a script to create alternate file types

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.
 
First, if I can creat a button to run a Macro fine or VBA fine; which would you recommend
Which would we recommend between a macro and VBA? They're the same thing. An Excel macro is written in VBA.

[tt][blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top