Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Code not drawing data for printing

Hi All, Hoping I could get some help with this code (It's got me beat).
I am using it on XL97 and the code will print out blank pages but no
data.

Originally the code was generating a runtime error 13 type mismatch
error so I did some research and added this code to overcome the error:


If IsNumeric(ActiveCell.Offset(0, 14)) Then
If ActiveCell.Offset(0, 14).Value < 0 Then
End If
End If

I would really appreciate some advice on what I am missing here?

Many Thanks,
Dean


Sub Macro4()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
ActiveSheet.DisplayPageBreaks = False
ActiveSheet.Unprotect Password:="XXXXXX"
MsgBox "Labels Spooled to Printer" & Chr(13) & "Click OK to Proceed" &
Chr(10)
LR = Range("B991").End(xlUp).Row ' Determine the last used row
For Each cell In Range("B1:B" & CStr(LR))
Rows(cell.Row).EntireRow.Hidden = True
If IsNumeric(ActiveCell.Offset(0, 14)) Then
If ActiveCell.Offset(0, 14).Value < 0 Then
End If
End If
Next cell
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Cells.EntireRow.Hidden = False
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
ActiveSheet.Protect Password:="XXXXXX"
Application.Run Macro:="Macro6"
End Sub

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
drawing shapes move when printing Barry_in_Oz Charts and Charting in Excel 2 October 5th 10 04:57 AM
Line printing that is not a border or drawing Vera Lemon Excel Discussion (Misc queries) 5 October 19th 06 12:31 AM
drawing chart only of select data [email protected] Charts and Charting in Excel 1 April 18th 06 09:00 AM
Drawing data from different filenames Del Excel Discussion (Misc queries) 4 February 7th 06 09:19 AM
drawing/printing an exact circle talisman New Users to Excel 4 October 23rd 05 11:39 PM


All times are GMT +1. The time now is 07:43 AM.

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"