Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Embedding spreadsheet in a user form | Excel Discussion (Misc queries) | |||
User form and hiding spreadsheet | Excel Discussion (Misc queries) | |||
help: master control macro and user form | Excel Programming | |||
Control Order on User Form | Excel Programming | |||
creating a checkbox control on a user form using VBA | Excel Programming |