Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Haeder/Footer param

One can insert variables like &File or &Date in a header/footer description.
I tried to pick up a reference to a cell in the header/footer and did not
succeed.
Is there a trick to do this ?
Regards,
Erik


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Haeder/Footer param

You can build the footer string using VBA in the beforeprint event. In that
case, you would do

Activesheet.PageSetup.LeftFooter = _
"formatting string " & ActiveSheet.Range("B9").Text & " more formatting
string"

--
Regards,
Tom Ogilvy



"Erik Creyghton" wrote in message
...
One can insert variables like &File or &Date in a header/footer

description.
I tried to pick up a reference to a cell in the header/footer and did not
succeed.
Is there a trick to do this ?
Regards,
Erik




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Haeder/Footer param

Hi
can be done only with VBA. e.g.

with activesheet
.pagesetup.centerfoort=.range("A1").value
end with

--
Regards
Frank Kabel
Frankfurt, Germany


Erik Creyghton wrote:
One can insert variables like &File or &Date in a header/footer
description. I tried to pick up a reference to a cell in the
header/footer and did not succeed.
Is there a trick to do this ?
Regards,
Erik

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Haeder/Footer param

Thanks for the answers. This will work fine.
Erik


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Haeder/Footer param

Erik

You will have to do this using VBA.

Sub CellInFooter()
With ActiveSheet
.PageSetup.CenterFooter = .Range("A1").text
End With
End Sub

Gord Dibben Excel MVP

On Tue, 27 Jul 2004 21:08:00 +0200, "Erik Creyghton"
wrote:

One can insert variables like &File or &Date in a header/footer description.
I tried to pick up a reference to a cell in the header/footer and did not
succeed.
Is there a trick to do this ?
Regards,
Erik


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Data Adding contents of two pivot tables and param que Roundy Excel Discussion (Misc queries) 0 July 2nd 07 10:20 PM
open a spreadsheet with param ITDUDE27 Excel Discussion (Misc queries) 1 April 19th 06 07:55 AM
PrintToFile param - what's the file format? jstrater Excel Programming 3 May 16th 04 10:09 PM
CorruptLoad param of Workbooks.Open Microsoft Excel Programming 6 April 17th 04 10:50 PM
Landscape Orientation when Footer set using mso-footer-data Disappear Vish[_2_] Excel Programming 0 November 14th 03 09:28 PM


All times are GMT +1. The time now is 05:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"