![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 1
|
I have developed a macro to fill in certain areas of a spreadsheet using "IF" functions. I would like to also add to this macro, the ability to print the selected spreadsheet if the criteria is "TRUE". Can this be done?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: May 2002
Posts: 206
|
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("A1") = True Then ActiveSheet.PrintOut End If End Sub |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
ie. weather it has printed or not... |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|