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: 1
Default Spreadsheet Control on User Form

Hi,
(First time poster)
I have a spreadsheet control on a user form (UserForm1) and am trying
to control the start-up position of another form (UserForm2)that is to
contain a list of actions on the cell clicked on. My code to
initialise UserForm2's start-up position runs somewhere along these
lines (the spreadsheet control is named ss1):

UserForm2.Top = ss1.Activecell.Top + ss1.Top + UserForm1.Top
UserForm2.Left = ss1.Activecell.Left + ss1.Left + UserForm1.Left


Although clicking on different cells affects the start-up position, as
I click cells progressively further right the form 'drifts away' from
the cell. I have also tried using EventInfo.X and EventInfo.Y but
with little success.

Many Thanks for any help.
 
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
Embedding spreadsheet in a user form GeorgeJ Excel Discussion (Misc queries) 3 July 24th 07 07:20 PM
User form and hiding spreadsheet Chip Smith Excel Discussion (Misc queries) 0 March 29th 06 07:46 PM
help: master control macro and user form jasonsweeney[_20_] Excel Programming 1 January 26th 04 11:10 AM
Control Order on User Form AKoodray Excel Programming 4 December 30th 03 09:30 PM
creating a checkbox control on a user form using VBA Tim Marsh[_2_] Excel Programming 3 December 8th 03 02:51 AM


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