Bring Header all the way to top of the page

mtreuth

New Member
Joined
Dec 8, 2014
Messages
1
Hi,

I am trying to put a picture in the header on an excel document and align the image so that it goes all the way to the top edge of the page. I can not get rid of about a half inch of white space above the header. Header margin is set to 0"

Here is the section of code I am using to put the image in the header and move it up to the top of the page.

For Each sht In Sheets
sht.PageSetup.LeftHeaderPicture.Filename = "H:\pic1.jpg"
sht.PageSetup.LeftHeaderPicture.CropTop = 50
sht.PageSetup.LeftHeader = "&G"
Next sht
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,584
Messages
6,125,674
Members
449,248
Latest member
wayneho98

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top