-2
need to run a macro depending on the selected cell. all the information is in the same column "E", but when it is for example for E4 I need the selected cell to correspond to another value in another sheet to run the same macro with the different cell value. following example.
Sheets("dados1").Select
**Range("E6").Select** (esse range precisa ser dinamico a cada célula que selecionar na mesma coluna)
Sheets("dados3").Select
**Range("R6").Select** (esse muda junto com a mudança da primeira folha)
Selection.Copy
Range("X1").Select
ActiveSheet.Paste
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Sheets("dados1").Select
thank you in advance, I am beginner in vba