I have a workbook set up that I would like to run a macro for to print a selection of sheets based on the text input into a cell. The worksheets are labeled:
Details
NFP1
NFP2
There are other sheets in the workbook, but these are not required to be printed.
So, if cell k21 on "details" contains the phrase "NFP1 and NFP2", I want all 3 sheets to print.
If k21 contains "NFP1 and Exit", I want to print "details", "NFP1" and then link to a seperate workbook entitled PLP for which I currently have a seperate macro set up:
Sub Open_exit()
'
' Open_exit Macro
'
'
ChDir "H:\"
Workbooks.Open Filename:="H:\PLP1.xls"
End Sub
If k21 is blank, I want the print function to become defunct.
Please help!
Details
NFP1
NFP2
There are other sheets in the workbook, but these are not required to be printed.
So, if cell k21 on "details" contains the phrase "NFP1 and NFP2", I want all 3 sheets to print.
If k21 contains "NFP1 and Exit", I want to print "details", "NFP1" and then link to a seperate workbook entitled PLP for which I currently have a seperate macro set up:
Sub Open_exit()
'
' Open_exit Macro
'
'
ChDir "H:\"
Workbooks.Open Filename:="H:\PLP1.xls"
End Sub
If k21 is blank, I want the print function to become defunct.
Please help!