Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default logo to top right of printed page


Hi
I am using Excel 97 VBA. I want to put a company logo (picture) on th
top right position of each printed page of an excel sheet.

The page can be portrait or landscape and i have page setup set to
wide ie there may be auto shrink.

I am copying to cell A1 then doing 'ShapeRange.IncrementLeft' for
distance of total column width minus picture width.
This does not place the picture where i expect - it repeats exactly o
any one sheet but varies its placement on different sheets.

Any advice would be welcome.
TIA.
bil

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default logo to top right of printed page


Here is something that uses the print range setting :-

'--------------------------------------------------------
Sub AddLogo()
Dim PA As Range
Dim RightCell As Range
'---------------------------------
Application.ScreenUpdating = False
Set PA = ActiveSheet.Range("Print_Area")
Set RightCell = PA.Cells(1, PA.Columns.Count)
cright = RightCell.Left + RightCell.Width
'---------------------------------
ActiveSheet.Pictures.Insert ("C:\WINNT\system32\oemlogo.bmp")
pw = ActiveSheet.Pictures(1).Width
pleft = cright - pw
ActiveSheet.Pictures(1).Left = pleft
ActiveSheet.Pictures(1).Top = 0
Application.ScreenUpdating = True
End Sub
'------------------------------------------------------------

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default logo to top right of printed page


Many thanks Brian - looks a neat solution - will give that a try.
cheers
Bil

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

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
How to make a page fit the whole printed page itsmehb Excel Discussion (Misc queries) 1 December 29th 09 02:46 PM
Row 1 HEADERS on EVERY printed page Tom Excel Discussion (Misc queries) 2 September 23rd 08 01:49 AM
Different info per printed page Zathrath Excel Discussion (Misc queries) 3 September 19th 07 01:53 AM
How to print row one on each printed page Pleiades Excel Discussion (Misc queries) 1 March 5th 07 02:27 AM
I want row 1 to show on the top of every printed page SusanInAlaska Excel Discussion (Misc queries) 1 January 9th 06 10:16 PM


All times are GMT +1. The time now is 12:07 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"