Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
OFFICEBOY10
 
Posts: n/a
Default INSERT A PRINT BUTTON ON A WORKSHEET

iM TRYING TO INSERT A PRINT FUNCTION IN AN EXCEL SPREADSHEET SO THAT WHEN
CLICKING CELL IT WILL AUTOMATICALLY PRINT THE SHEET.
  #2   Report Post  
Posted to microsoft.public.excel.misc
flummi
 
Posts: n/a
Default INSERT A PRINT BUTTON ON A WORKSHEET

select tools--macro--record a macro,
when asked for the macro name type: Print
under "Store in" select "This workbook"
click ok
perform the print operation,
select tools--macro--stop recording
select view--toolbars--control toolbox
click the design button (green triangle)
click the command button icon
click somewhere on your sheet, hold and drag to the right and down to
create a button
right click in the new button and from the context menu select 'view
code'
between the lines "private sub" and "end sub" type the name of your
macro which was 'Print'
close the VBA window
on your sheet click the design button
click the new button to test it.

Hans

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add a print tab or button in a cell SimonJ Excel Discussion (Misc queries) 1 October 17th 05 01:59 PM
Insert Row before Macro Button Kieranz Excel Discussion (Misc queries) 2 September 30th 05 01:57 PM
Insert comment in protected worksheet The Tuner Excel Worksheet Functions 2 June 6th 05 11:38 PM
Insert worksheet ParTeeGolfer Excel Worksheet Functions 1 January 10th 05 07:03 PM
print a specific area within a worksheet by clicking on print? honclub Excel Worksheet Functions 1 October 29th 04 03:22 AM


All times are GMT +1. The time now is 09:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"