Mortadella
Member
Hi!
I have been trying to create a macro that will recognize that if a cell contains a 3 the macro will print out one range and if it contains anything else it will print out another range.
I had thought this would be comparatively simple but no matter what I do I get A1:J77 and cannot get the other option K1:U77 to print.
Can anyone tell me where I have gone awry?
[pre]
[/pre]
I have been trying to create a macro that will recognize that if a cell contains a 3 the macro will print out one range and if it contains anything else it will print out another range.
I had thought this would be comparatively simple but no matter what I do I get A1:J77 and cannot get the other option K1:U77 to print.
Can anyone tell me where I have gone awry?
[pre]
Code:
Sub PrintNotice()
'
' PrintNotice Macro
' Prints out dispute notice or rebill sheet
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
Cells.Select
Range("A1").Activate
ActiveWindow.DisplayZeros = False
Cells.Select
Application.DisplayCommentIndicator = xlCommentIndicatorOnly
If (G116) = 3 = False Then
ActiveSheet.PageSetup.PrintArea = "$A$1:$J$77"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
If (G116) = 3 = True Then
ActiveSheet.PageSetup.PrintArea = "$K$1:$U$77"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Else
End If
End If
End Sub