ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Linked Header Problem - simple one (https://www.excelbanter.com/excel-discussion-misc-queries/174359-linked-header-problem-simple-one.html)

marc

Linked Header Problem - simple one
 
Here is a simple one:

I am attempting to populate a header with a cell from a linked
worksheet.

When I put the contents of the linked cell into a cell, i get the
String Value, in this case "Go Nuggets"

Range("A1").Value = "='C:\Documents and Settings\mwelty\Desktop
\Headers and Footers\[Header_Footer_Template.xls]Sheet1'!R2C1"

However when I try to do the same thing for the Headers and Footers,
it places the entire path ( "='C:\Doc...R2C1") as the header and
doesn't grab the value.

ActiveSheet.PageSetup.RightHeader = "='C:\Documents and Settings\mwelty
\Desktop\Headers and Footers\[Header_Footer_Template.xls]Sheet1'!R2C1"

What am I doing wrong. I have tried manipulating the quotes ect. but
no luck. Thanks to all who answer.


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

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