Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I am looking for a macro before print to verify if specify cell is filled with values.. Thanks. George... |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Copy the following code into the workbook's code module. To get to the right
place: right-click on the Excel icon to the left of the word "File" in the Excel menu and choose [View Code] from the popup list. Copy the code below into it and modify it to use the correct sheet name and cell that needs to have data in it before it can be printed. Private Sub Workbook_BeforePrint(Cancel As Boolean) If IsEmpty(Worksheets("Sheet1").Range("A1")) Then Cancel = True ' cancel printing 'don't print if the cell on the sheet is empty 'could put a message as: MsgBox "No entry on sheet 'Sheet1', cell A1" End If End Sub "George" wrote: Hi, I am looking for a macro before print to verify if specify cell is filled with values.. Thanks. George... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Index/match - make blank cells return a blank value. | Excel Worksheet Functions | |||
where can I down Blank Worksheets, blank stmt. of account forms | Excel Discussion (Misc queries) | |||
Not showing blank and non blank items in filter mode for values | Excel Worksheet Functions | |||
Imported Data creates blank cells that aren't really blank | Excel Worksheet Functions | |||
how to get excel to display blank if reference cell blank | Excel Worksheet Functions |