ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Printing Embedded Text Box (https://www.excelbanter.com/excel-programming/406962-printing-embedded-text-box.html)

pablo

Printing Embedded Text Box
 
Is there a way to print the value of a text box in a spreadsheets header? I
have a dynamic print function that prints out the spreadsheet. I would like
to be able to use the text box when the print out spans multiple pages.


Sub PrintCart()

Dim lngBottomRow As Long
Dim rngData As Range

'Where is the end of the data beginning with row 24, 1-23 reserved for
header
Set rngData = Range("a24").End(xlDown)

lngBottomRow = rngData.Row

Range("A1", "J" & lngBottomRow).PrintOut

End Sub


All times are GMT +1. The time now is 04:29 AM.

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