LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default placing an embedded file on a sheet in a fixed position

I hope someone can help. I have written the following code:

ActiveSheet.OLEObjects.Add(Filename:= _
"Z:\CC Documentation\Blank Documents\YELL MAPS\reading.pdf",
Link:=False, _
DisplayAsIcon:=True, IconFileName:= _

"C:\WINDOWS\Installer\{AC76BA86-1033-0000-7760-000000000002}\PDFFile.ico",
_
IconIndex:=0, IconLabel:= _
"Reading Directions").Select

which basically embeds a pdf file (a map) dependent on what location
has been selected in cell B13 (I have not included that bit of the
code). What I having trouble with is getting it in the same location
on the worksheet . I have used the following lines:

Selection.ShapeRange.incrementLeft 27.75
Selection.ShapeRange.incrementTop 548.25

but this seems to place it all over the sheet.

I would appreciate any help.

thanks

 
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
cell data in fixed position soinx Excel Worksheet Functions 1 July 15th 09 01:44 PM
placing a button directly in a sheet kemel Excel Discussion (Misc queries) 1 August 1st 06 03:25 PM
How do I keep fixed and Non-fixed decimals on a sheet together? kpike Excel Worksheet Functions 2 June 22nd 06 12:33 AM
help with placing Logo on excel sheet Soth Excel Discussion (Misc queries) 4 July 11th 05 10:11 PM
Placing an array on the active sheet M R Excel Programming 0 July 14th 03 12:11 AM


All times are GMT +1. The time now is 08:19 AM.

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

About Us

"It's about Microsoft Excel"