nightcrawler23
Well-known Member
- Joined
- Sep 24, 2009
- Messages
- 721
hi all,
i have a userform with a listboz and few buttons
i wanted to update the listbox whenever a new cell is selected.
i couldn't figure out the way so i just unload the form and reload it using the below code.
The problem is every time a change selection the form goes off and comes back which looks odd. also the position is always center of the screen even if i change it.
Is there a way to come over it. Or is there another way to accomplish the same thing.
i have a userform with a listboz and few buttons
i wanted to update the listbox whenever a new cell is selected.
i couldn't figure out the way so i just unload the form and reload it using the below code.
Code:
Sub formRefresh()
Application.ScreenUpdating = False
Unload frmPropList
frmPropList.Show
Application.ScreenUpdating = True
End Sub
Code:
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
If frmPropList.Visible = True Then
formRefresh
End If
End Sub
The problem is every time a change selection the form goes off and comes back which looks odd. also the position is always center of the screen even if i change it.
Is there a way to come over it. Or is there another way to accomplish the same thing.