I am not sure the best way to attack this: I am working on a print macro for which I want to not print any #N/A or empty values; I already have an if statement:
=IF(Print!E6="Scorecard - Team Only",Print!G6,"")
in the cell in question; I had thought I could make a nested IF statement so that:
=IFERROR("","y1") AND =IF(Print!E6="Scorecard - Team Only",Print!G6,"")
=IF(OR(Print!E6="Scorecard - Team Only",=IFERROR("")),Print!G6,"")
but I am having problems with the formula nesting.
I have not looked at this macro for about a year and a half (and don't work with macros much anymore), so I am trying to deal with this issue, as well as just learning Excel 2007...
The main thing I am trying to accomplish is running this macro - the client has asked us to sort in a different way, which leaves a lot of blanks. I had even tried doing a vlookup to pull in the criterion we are now using to sort, and my vlookup didn't work, so the next best thing I thought would be to use the nested if statements to not show the error values (which are printing)... confused yet?
Here is part of the macro:
Application.ScreenUpdating = False
Sheets("Scorecard - Team Only").Select
Range("y2").Select
Selection.Copy
Range("O3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Range("y3").Select
Selection.Copy
Range("O3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False
This continues to y103 (when I developed this, I was not able to get the looping to work, either, so it actually goes y2, y3, y4, etc.).
Any thoughts would be appreciated.
Thanks!
=IF(Print!E6="Scorecard - Team Only",Print!G6,"")
in the cell in question; I had thought I could make a nested IF statement so that:
=IFERROR("","y1") AND =IF(Print!E6="Scorecard - Team Only",Print!G6,"")
=IF(OR(Print!E6="Scorecard - Team Only",=IFERROR("")),Print!G6,"")
but I am having problems with the formula nesting.
I have not looked at this macro for about a year and a half (and don't work with macros much anymore), so I am trying to deal with this issue, as well as just learning Excel 2007...
The main thing I am trying to accomplish is running this macro - the client has asked us to sort in a different way, which leaves a lot of blanks. I had even tried doing a vlookup to pull in the criterion we are now using to sort, and my vlookup didn't work, so the next best thing I thought would be to use the nested if statements to not show the error values (which are printing)... confused yet?
Here is part of the macro:
Application.ScreenUpdating = False
Sheets("Scorecard - Team Only").Select
Range("y2").Select
Selection.Copy
Range("O3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Range("y3").Select
Selection.Copy
Range("O3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False
This continues to y103 (when I developed this, I was not able to get the looping to work, either, so it actually goes y2, y3, y4, etc.).
Any thoughts would be appreciated.
Thanks!