English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How do you make a buttom, that when clicked the spreadsheet prints?? I guess using Macros is the only way... I need to know the exact macro to put in and link to the button...

2007-01-22 18:59:27 · 2 answers · asked by CRA 3 in Computers & Internet Software

2 answers

Hi
This is the first thing you can learn in VBA of Excel
- go to Tools > Macro > Record new macro
- and do the printing you want
- Stop the recorder
- Now go to the VBE (ALT + F11) and see what Excel did for you in the "module1" it added.
- Go back to Excel (ALT + F11) and draw a command using View > Toolbars > Forms
- The command will ask you which macro you want to assign this command to.
- Select your macro (If you didn't change it)

I hope this will answer your question

PS: Your answer on WEEKDAY( TODAY()) was wrong, I posted the correct answer there.

Trust me, I am the VBAXLMan

2007-01-23 21:39:29 · answer #1 · answered by Anonymous · 0 0

I don't know about a macro, but couldn't you attach some visual basic code to the button?

Just a thought.

2007-01-23 03:20:27 · answer #2 · answered by Maggs 1 · 0 0

fedest.com, questions and answers