SkipVought
Programmer
I am have brain-loss!
I have a form that I am initially positioning on a sheet, relative to the ActiveCell.
If I scroll down on my sheet and select a cell, my form is now positioned off the active window somewhere.
It seems that my form position is relative to the window and not the sheet.
How can I properly position my form?
My code
Skip,
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
I have a form that I am initially positioning on a sheet, relative to the ActiveCell.
If I scroll down on my sheet and select a cell, my form is now positioned off the active window somewhere.
It seems that my form position is relative to the window and not the sheet.
How can I properly position my form?
My code
Code:
With ActiveSheet.UsedRange
With Target
If .Row / 2 = Int(.Row / 2) Then
lRow = .Row
Else
lRow = .Row + 1
End If
End With
With ufmMaterialParms
.Show
.Top = Cells(lRow, 1).Top + Cells(lRow, 1).Height + 85
.Left = Cells(Target.Row, 2).Left + 20
End With
End With
Skip,
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884