Detectar cambio de hoja / Detect sheet change

MDeAbreuS

New Member
Joined
Apr 7, 2021
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Good afternoon, I apologize for my English, I'm using the Google translator.

The issue is that I am trying to make a complement, just a group of tools to have them at hand.

And I was wondering, if there is a way for the active form to detect when it is changed from one sheet to another.

I need, that the userform detects when I change from one sheet to another, so that when changing from one sheet to another, a pair of controls are updated (checkbox) that are tiled.

In advance thank you very much for the help.

----------------------------------------------------------------

Buenas tardes, pido disculpas por mi ingles, estoy usando el traductor de Google.

El asunto es que estoy tratando de hacer un complemento, tan solo un grupo de herramientas para tenerlas a la mano.

Y me preguntaba, si existe una manera de que el formulario activo detecte cuando se cambia de una hoja a otra.

Necesito, que el UserForm detecte cuando yo cambie de una hoja a otra, para que al cambiar de una hoja a otra, se actualice un par de controles (CheckBox) que están tildados.

De antemano muchas gracias por la ayuda.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hola MDeAbreuS

Un tip: puedes poner un aviso en cada hoja para que te avise al hacer el cambio.

VBA Code:
Private Sub Worksheet_Activate()
MsgBox "Estás en la " & Application.ActiveSheet.Name
End Sub

De ahí puedes continuar tú, saludos.

ColdGeorge
 
Upvote 0

Forum statistics

Threads
1,224,874
Messages
6,181,511
Members
453,050
Latest member
Obil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top