Relative Image Position

tinmice

New Member
Joined
May 30, 2012
Messages
2
Hi Guys,

I'm making a template for a new set of reports that I'm producing and want to keep it fairly simple.

I want a logo in the top right of the screen, as part of a header that I have already created that just consists of text in various cells. I can position the image absolutely, but I would quite like it so that whatever resolution screen I open it on, the logo appears in the upper right corner of the visible cells.

I don't know if this is possible, I have been searching for a while now and not found all that much. Any ideas?

Thanks.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You may want to try something along these lines :

change the sheet and image names as required.

Code:
Private Sub Workbook_Open()
    With Sheets(1).Shapes("image 1")
        .Left = ActiveWindow.VisibleRange.Width - _
        .Width - ActiveWindow.VisibleRange.Columns _
        (ActiveWindow.VisibleRange.Columns.Count).Width
    End With
End Sub
 
Upvote 0
Thats great, thanks.

I took the '- .width' out as it was coming in about an images width from the right of the screen, but it works fine otherwise.

Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,215,407
Messages
6,124,723
Members
449,184
Latest member
COrmerod

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