“Excel VBA Como tornar a forma visível durante a rolagem” Respostas de código

Excel VBA Como tornar a forma visível durante a rolagem

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    With ActiveSheet.Shapes(1)

        .Left = ActiveWindow.VisibleRange(2, 2).Left
        .Top = ActiveWindow.VisibleRange(2, 2).Top

    End With

End Sub
Nutty Narwhal

Excel VBA Como tornar a forma visível durante a rolagem

Private Sub Worksheet_Activate()
    Call StartTimedRefresh
End Sub

Private Sub Worksheet_Deactivate()
    Call StopTimer
End Sub
Nutty Narwhal

Excel VBA Como tornar a forma visível durante a rolagem

Private eTime
Sub ScreenRefresh()
    With ThisWorkbook.Worksheets("Sheet1").Shapes(1)
        .Left = ThisWorkbook.Windows(1).VisibleRange(2, 2).Left
        .Top = ThisWorkbook.Windows(1).VisibleRange(2, 2).Top
    End With
End Sub

Sub StartTimedRefresh()
    Call ScreenRefresh
    eTime = Now + TimeValue("00:00:01")
    Application.OnTime eTime, "StartTimedRefresh"
End Sub

Sub StopTimer()
    Application.OnTime eTime, "StartTimedRefresh", , False
End Sub
Nutty Narwhal

Respostas semelhantes a “Excel VBA Como tornar a forma visível durante a rolagem”

Perguntas semelhantes a “Excel VBA Como tornar a forma visível durante a rolagem”

Mais respostas relacionadas para “Excel VBA Como tornar a forma visível durante a rolagem” em VBA

Procure respostas de código populares por idioma

Procurar outros idiomas de código