Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a userform with comcobox, two textbox and some buttons.
If I run this macro (from button in userform) shown below, and then try to move the UserForm with the mouse, the UserForm getting spread all over the screen(Following the mouse).Looks like it's copying itself for every movment. Any Suggestion why? Everything works fine, but is not possible to look at the cells behind the userform, by moving it. Private Sub CommandButton3_Click() ActiveSheet.Unprotect Password:="" Application.ScreenUpdating = False Dim c As range Set c = ActiveCell For Each c In ActiveSheet.range("B4:B53") If Not IsEmpty(c) Then GoTo line1 Else GoTo line2 line1: Next c line2: ComboBox1.Value = c.Offset(0, -1).Value ComboBox1.SetFocus ActiveSheet.Protect Password:="", DrawingObjects:=True, _ Contents:=True, Scenarios:=True End Sub *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to move a row using mouse but not overwrite other row? | Excel Discussion (Misc queries) | |||
mouse move event | Excel Programming | |||
Is clicking on the tab with my mouse the only way to move from on. | Excel Worksheet Functions | |||
move mouse or cursorpos | Excel Programming | |||
cursor or mouse move | Excel Programming |