Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Placement of graphical object on screen

Hi Quartz;

The example I'm giving you is for an image, but, if it is
a button you can set the placement property the same way.

ActiveSheet.Pictures.Insert( _
"C:\Documents and Settings\Administrator\My
Documents\My Pictures\Sample.jpg"). _
Select
Selection.ShapeRange.IncrementLeft 267#
Selection.ShapeRange.IncrementTop 78.75
With Selection
.Placement = xlFreeFloating
.PrintObject = True
End With

Thanks,

Greg
-----Original Message-----
Hello. I have a program that creates an activeX control

on a sheet whenever a
user clicks a button.

The problem is, right now, the object is placed on the

sheet at the cell
pointer.

I would like the object to always appear approximately

center of the screen
(doesn't have to be perfect) regardless of user location.

Any clue how I can do this?
.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Placement of graphical object on screen

Thanks, but this doesn't work as it still moves the control in relationship
to the cell pointer.

Any other ideas?

" wrote:

Hi Quartz;

The example I'm giving you is for an image, but, if it is
a button you can set the placement property the same way.

ActiveSheet.Pictures.Insert( _
"C:\Documents and Settings\Administrator\My
Documents\My Pictures\Sample.jpg"). _
Select
Selection.ShapeRange.IncrementLeft 267#
Selection.ShapeRange.IncrementTop 78.75
With Selection
.Placement = xlFreeFloating
.PrintObject = True
End With

Thanks,

Greg
-----Original Message-----
Hello. I have a program that creates an activeX control

on a sheet whenever a
user clicks a button.

The problem is, right now, the object is placed on the

sheet at the cell
pointer.

I would like the object to always appear approximately

center of the screen
(doesn't have to be perfect) regardless of user location.

Any clue how I can do this?
.


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
Can I fix the position of an object on the screen? Bob Arnett Excel Discussion (Misc queries) 0 October 27th 09 05:46 PM
How to add a screen tip to an object (no a hyperlink)? Dudealt Excel Discussion (Misc queries) 1 August 8th 08 06:46 PM
Positioning a graphical object Tom Ogilvy Excel Programming 0 July 27th 04 05:39 PM
determining coordinates for screen placement of user form PatFinegan[_10_] Excel Programming 2 January 31st 04 09:03 PM
Keep Object with Focus on Display Screen andy[_5_] Excel Programming 4 January 15th 04 07:03 PM


All times are GMT +1. The time now is 04:10 PM.

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"