Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Printing a Page Automatically When All Cells are Filled

Hi,

'I was wondering if anybody can help me write this in VBA:

IF range (B20:B53, E:20:E53, H20:H51) manually user keypunched values,

AND range (C20:C52, F20:F52, I20:I50) equal to = " " -- calculated by
formula that spits out values only when there are discrepancies with the
manually keypunched values above,

THEN batch02. I have already created macros assigned to user buttons that
prints assigned ranges for each batch. For this case, its batch02 macro.


'Thanks
'Appreciate the help!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Printing a Page Automatically When All Cells are Filled

All cells equal to no value, "". Based on an IF formula, i.e.,
IF(B4<B3,B4-B3,"")

Not zero, just no value at all.


"Nigel" wrote in message
...
You need to be a bit more precise about the first condition for TRUE. e.g
all cells 0 or not zero or ?


--

Regards,
Nigel




"Gerard Sanchez" wrote in message
...
Hi,

'I was wondering if anybody can help me write this in VBA:

IF range (B20:B53, E:20:E53, H20:H51) manually user keypunched values,

AND range (C20:C52, F20:F52, I20:I50) equal to = " " -- calculated by
formula that spits out values only when there are discrepancies with the
manually keypunched values above,

THEN batch02. I have already created macros assigned to user buttons
that prints assigned ranges for each batch. For this case, its batch02
macro.


'Thanks
'Appreciate the help!






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Printing a Page Automatically When All Cells are Filled


Not this ranges (B20:B53, E:20:E53, H20:H51)
but ranges (C20:C52, F20:F52, I20:I50).

That second set of ranges contain an IF formula that checks for keypunch
error. If error is found it does simple arithmetic, if no error, it returns
no value.


"Nigel" wrote in message
...
You sure that user punched values in this range are no value at all?

IF range (B20:B53, E:20:E53, H20:H51)

--

Regards,
Nigel




"Gerard Sanchez" wrote in message
...
All cells equal to no value, "". Based on an IF formula, i.e.,
IF(B4<B3,B4-B3,"")

Not zero, just no value at all.


"Nigel" wrote in message
...
You need to be a bit more precise about the first condition for TRUE.
e.g all cells 0 or not zero or ?


--

Regards,
Nigel




"Gerard Sanchez" wrote in message
...
Hi,

'I was wondering if anybody can help me write this in VBA:

IF range (B20:B53, E:20:E53, H20:H51) manually user keypunched values,

AND range (C20:C52, F20:F52, I20:I50) equal to = " " -- calculated by
formula that spits out values only when there are discrepancies with
the manually keypunched values above,

THEN batch02. I have already created macros assigned to user buttons
that prints assigned ranges for each batch. For this case, its batch02
macro.


'Thanks
'Appreciate the help!











  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Printing a Page Automatically When All Cells are Filled

What you probably need is a worksheet change event. Are there specific
cells that you enter that cause the values to be equal to " "? If so, it
would be useful to know which ones they are.

"Gerard Sanchez" wrote:

Hi,

'I was wondering if anybody can help me write this in VBA:

IF range (B20:B53, E:20:E53, H20:H51) manually user keypunched values,

AND range (C20:C52, F20:F52, I20:I50) equal to = " " -- calculated by
formula that spits out values only when there are discrepancies with the
manually keypunched values above,

THEN batch02. I have already created macros assigned to user buttons that
prints assigned ranges for each batch. For this case, its batch02 macro.


'Thanks
'Appreciate the help!




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
printing only filled in cells of an inventory? johnkennedy Excel Discussion (Misc queries) 1 February 23rd 10 06:36 PM
How to stop printing untill certain cells are filled in? Matt Excel Discussion (Misc queries) 1 June 2nd 09 09:53 PM
Printing Frozen Cells Automatically on every page gin2000 Excel Discussion (Misc queries) 2 July 17th 06 06:14 PM
I need formula that will automatically count the filled cells. Benar_Isais Excel Discussion (Misc queries) 2 November 15th 05 11:22 AM
Macro that copy page to page just some filled cells LC Excel Discussion (Misc queries) 0 May 13th 05 11:22 PM


All times are GMT +1. The time now is 05:30 AM.

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"