Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default print function in excel

i have a template made and working mostly fine but i need two things and
unfortunately i do not know codes and stuff.

on the first three tabs (sheet1, sheet2, sheet3), i do not want them to
print - at all;

on the last tab, (sheet4). i only want that to print if two conditions are
met. the first, is a date value and i had help getting that set up but i no
longer have contact information of the person on this group that helped fix
that problem for me. the date value works fine.

the second condition on sheet4 that must be true before it prints is cell D7
must be 0 before it prints.

i tried to just add a line to the date macro but i do not think it is as
easy as i had hoped.

if any one can help,

thank you,

jatman

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default print function in excel

Post the code you have that is working. Probably a BeforePrint macro.

--
Regards,
Tom Ogilvy

"jatman" wrote in message
...
i have a template made and working mostly fine but i need two things and
unfortunately i do not know codes and stuff.

on the first three tabs (sheet1, sheet2, sheet3), i do not want them to
print - at all;

on the last tab, (sheet4). i only want that to print if two conditions

are
met. the first, is a date value and i had help getting that set up but i

no
longer have contact information of the person on this group that helped

fix
that problem for me. the date value works fine.

the second condition on sheet4 that must be true before it prints is cell

D7
must be 0 before it prints.

i tried to just add a line to the date macro but i do not think it is as
easy as i had hoped.

if any one can help,

thank you,

jatman



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default print function in excel

Private Sub Workbook_BeforePrint(Cancel As Boolean)
If ActiveSheet.Name = "DSR" Then
Cancel = True
Application.EnableEvents = False
With ActiveSheet
If .Range("D1") < "[Ctrl] ;" Then
.PrintOut
End If
End With
Application.EnableEvents = True
End If
End Sub

jat

"Tom Ogilvy" wrote:

Post the code you have that is working. Probably a BeforePrint macro.

--
Regards,
Tom Ogilvy

"jatman" wrote in message
...
i have a template made and working mostly fine but i need two things and
unfortunately i do not know codes and stuff.

on the first three tabs (sheet1, sheet2, sheet3), i do not want them to
print - at all;

on the last tab, (sheet4). i only want that to print if two conditions

are
met. the first, is a date value and i had help getting that set up but i

no
longer have contact information of the person on this group that helped

fix
that problem for me. the date value works fine.

the second condition on sheet4 that must be true before it prints is cell

D7
must be 0 before it prints.

i tried to just add a line to the date macro but i do not think it is as
easy as i had hoped.

if any one can help,

thank you,

jatman




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
Excel 2008 for Mac - Why no Print Preview function? Dan P in Columbus Excel Discussion (Misc queries) 1 January 21st 08 09:59 PM
Hide Print function from excel file Robin Excel Discussion (Misc queries) 0 September 14th 07 12:54 PM
First page of Excel sheerepeats in print layout or print preview philfrotonda Excel Discussion (Misc queries) 1 July 12th 07 09:28 PM
How to enable Excel print function ? CK Setting up and Configuration of Excel 3 February 22nd 05 06:41 PM
Call Excel Print Function, But Not Through a Macro arhythm Excel Programming 0 January 14th 04 09:37 PM


All times are GMT +1. The time now is 01:46 PM.

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

About Us

"It's about Microsoft Excel"