I placed Monthview ActiveX control on excel Sheet. I want this control to be appeared when user click at any cell in column 4. To show this control in right position I wrote such code:
An active is Row number 1 or 2.
If I place Monthview1.visible=true on the 1-st place is appears double such Montview controls….why? It is looks like Excel doesn’t Repaint th sheet. But if I put such row Monthview1.visible=true on the 2-st place everything is good but I saw the “transference” on this control……..and it is not a good view.
How can I do it right?
Code:
Private Sub Worksheet_SelectionChange(Byval Target as Range)
If Target.Column <> 4 Then
MonthView1.Visible = False
Exit Sub
End If
Monthview1.visible=true ‘1
Monthview1.Left=Target.left
Monthview1.Top=Target.Top
Monthview1.visible=true ‘2
End Sub
An active is Row number 1 or 2.
If I place Monthview1.visible=true on the 1-st place is appears double such Montview controls….why? It is looks like Excel doesn’t Repaint th sheet. But if I put such row Monthview1.visible=true on the 2-st place everything is good but I saw the “transference” on this control……..and it is not a good view.
How can I do it right?