ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Vb code to print a page # (https://www.excelbanter.com/excel-programming/279798-vbulletin-code-print-page.html)

Felice[_2_]

Vb code to print a page #
 
Does anyone know a vb code to print a specific page # if a
certain cell is not null or has a specific value?


Steve Smallman

Vb code to print a page #
 
Felice,
assume cell to check is A1

if range("a1")="" or range("A1")=Your_Value then
sheets(1).Printout from:=your_page, to:=your_page
end if

Throw this in the worksheet_change event, and it should work for you.

Steve
"Felice" wrote in message
...
Does anyone know a vb code to print a specific page # if a
certain cell is not null or has a specific value?





All times are GMT +1. The time now is 05:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com