Userform position "off the screen"

quackdad

Board Regular
Joined
Jul 23, 2013
Messages
110
It appears that when a userform's startup position property is set to Manual, the position of the form is relative to the selected cell, but only in terms of the cell's position relative to A1. I could select a cell such as AC8, which means that A1 would not be visible, but form pops up as if A1 were showing in the upper left-hand corner of the screen. In other words, the selected cell is on the screen, but the pop-up is off the screen (in some netherland to the right). Is there a way to do this so the form is visible, or do I have to select another startup position property such as Center Owner, and forego the custom positioning?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi there,

I'm about to logo out, but for any 'answerer', maybe post (using code tags) the current code?

Mark
 
Upvote 0
If you want to position a userform at a certain location, perhaps based on the active cell, then add code in it's Initialize event.
 
Upvote 0
Here's one example
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Not Intersect(Target, Range("E15:E507")) Is Nothing Then
        If Range("C1") = "" Then
            ViewTopic.Move ActiveCell.Left + Application.Left + 0, ActiveCell.Top + Application.Top + 55
            ViewTopic.Show
        End If
    End If
End Sub
I've tried adding Target.Select, to no avail
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top