Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image file within Excel Header or footer

Status
Not open for further replies.

Zaichik123

Technical User
Sep 4, 2003
18
GB
Unless I am mistaken it is impossible to select an image file (like a company logo) to be added to your header or footer through File/Page setup... (Microsoft Office 2000 Pro)
But I'm sure it must be able to be done through VB, I've been playing around with some code for a hour or so now and I'm sure I'm on the brink of cracking it - can anyone confirm it is definitely possible and save my poor brain before it turns to mush! (if you have the code and could include in your response, I'd be very grateful)

I was initially thinking:
With ActiveSheet.Pagesetup
.RightHeader = ChDir "file location"
Workbooks.Open Filename:= _
"file location"
Range(" ").Select
ActiveSheet.Shapes("Object 1").Select
Selection.Copy
ActiveWindow.Close
Range(" ").Select
ActiveSheet.Paste
 
I have a workaround example on my work PC so if you e-mail me at chrisjchattin@yahoo.co.uk so I can have your address I'll send you the workbook tomorrow

HTH
 
OMG - what a day. Sorry to say I've lost the file as my work PC's HD died. A lot of my stuff I'd backed up onto the network but unfortunately this file was one of the casualties - if I manage to get it back I'll let you know. v. embarassing to let you down - again sorry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top