ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   cell data in fixed position (https://www.excelbanter.com/excel-worksheet-functions/236916-cell-data-fixed-position.html)

soinx

cell data in fixed position
 
I have a worksheet designed to print a certain kind of document. In this case
it is gross composition for a product. There are several different products
which fit into this template I have designed. The amount of information in
this document varies, which gives me a problem with the bottom of the
document. I want a prdoct specific text at a fixed point at the bottom. The
footer option will do that, but it will not allow me to place cell
information in it. Using VB will only put in the correct text when I open the
document. What I would like to do is having the footer change "realtime" when
the cell, that it refers to, changes.

Anyone know if this is possible?

Stefi

cell data in fixed position
 
What about an event macro?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "A10" Then _
ActiveSheet.PageSetup.LeftFooter = Target
End Sub

Change A10 to your fixed cell!

Regards,
Stefi


€˛soinx€¯ ezt Ć*rta:

I have a worksheet designed to print a certain kind of document. In this case
it is gross composition for a product. There are several different products
which fit into this template I have designed. The amount of information in
this document varies, which gives me a problem with the bottom of the
document. I want a prdoct specific text at a fixed point at the bottom. The
footer option will do that, but it will not allow me to place cell
information in it. Using VB will only put in the correct text when I open the
document. What I would like to do is having the footer change "realtime" when
the cell, that it refers to, changes.

Anyone know if this is possible?



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

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