Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default Variable Image in Header

Hi

I am trying to insert an image into the header based on a variable in the
same worksheet.
I have a 'messy?' solution involving returning to a cell, a file name for an
image.

then using the following code, replace logo.jpg with the cell reference.

Sub InsertPicture()

With ActiveSheet.PageSetup.LeftHeaderPicture
.Filename = "C:\Temp\logo.jpg"
.Height = 100
.Width = 150
.Brightness = 0.36
.ColorType = msoPictureAutomatic
.Contrast = 0.39
.CropBottom = 0
.CropLeft = 0
.CropRight = 0
.CropTop = 0
End With

' Enable the image to show up in the left header.
ActiveSheet.PageSetup.LeftHeader = "&G"

End Sub




Is this a reasonable solution?
What is the syntax?

Any help is appreciated

Graham

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
Image in Header in front of data in cells Microsoft Excel Discussion (Misc queries) 0 April 17th 09 05:47 PM
Header image blurry... youngroanian Excel Discussion (Misc queries) 2 October 8th 08 11:24 PM
Variable IMAGE in document header hhalle Excel Discussion (Misc queries) 0 December 7th 05 10:14 PM
Image in a header Red[_2_] Excel Programming 0 September 9th 03 12:03 PM
Image Variable Philippe[_3_] Excel Programming 1 July 12th 03 07:17 PM


All times are GMT +1. The time now is 02:39 AM.

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

About Us

"It's about Microsoft Excel"