Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Gráfico animado (con movimiento) con scrollbar o barra de desplazamiento

publicado

Código Hoja: Dinámico (donde está la gráfica)

Option Explicit

Private Sub ScrollBar1_Change()

ScrollBar1.Max = Range("chrtMaxScrollBar")

'para definir el valor máximo de la barra de desplazamiento. Para hacerlo programamos elevento ScrollBar1_Change()

End Sub

Código Módulo 1

Option Explicit

Sub animate_Chart()

Dim iX As Integer, Delay As Single, Start As Single

'fijar valores del eje Y del grafico

Call fix_Y_Values

Range("chrtCounter") = 0

For iX = 0 To Range("chrtMaxScrollBar")

Range("chrtCounter") = Range("chrtCounter") + 1

Delay = 0.1

Start = Timer

Do While Timer < Start + Delay

DoEvents

Loop

Next iX

End Sub

Sub backTo0()

Range("chrtCounter") = 0

End Sub

Private Sub fix_Y_Values()

ActiveSheet.ChartObjects("chrtUSDBRL").Activate

With ActiveChart

.Axes(xlValue).MinimumScale = Range("chrtXmin")

.Axes(xlValue).MaximumScale = Range("chrtXmax")

End With

Range("A1").Select

End Sub

Gráfico Animado con ScrollBar.rar

Featured Replies

publicado
  • Autor

Animar gráfico: pulsando Botón >>

Iniciar de nuevo: pulsando Botón <<

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.