Hi, thanks for your help.
Since im still learning VBA its kinda hard to understand complex code (for me). I stared at this for hours still dont understand but with some, or a lot, search and frustration i finally for a solution for what i need and its a code that i truly understand how it works.
I have 3 shapes and if i click in one of them its changes color and runs this simple code
Application.Goto reference:=Worksheets("Janeiro").Range("A5"), Scroll:=True
the thing is that i wanted to click on other shape and the previous one change the color back . so i come up with this.
For sure its a rookie code but it works and i did it myself :D
Sub Imagem23_Click()
With ActiveSheet
.Shapes("Shape1").Fill.ForeColor.RGB = RGB(255, 128, 0)
.Shapes("Shape1").Reflection.Type = msoReflectionType1
.Shapes("Shape2").Fill.ForeColor.RGB = RGB(0, 0, 0)
.Shapes("Shape2").Reflection.Type = msoReflectionTypeNone
.Shapes("Shape3").Fill.ForeColor.RGB = RGB(0, 0, 0)
.Shapes("Shape3").Reflection.Type = msoReflectionTypeNone
End With
Application.Goto reference:=Worksheets("Janeiro").Range("A5"), Scroll:=True
End Sub
Sub Imagem24_Click()
With ActiveSheet
.Shapes("Shape2").Fill.ForeColor.RGB = RGB(255, 128, 0)
.Shapes("Shape2").Reflection.Type = msoReflectionType1
.Shapes("Shape1").Fill.ForeColor.RGB = RGB(0, 0, 0)
.Shapes("Shape1").Reflection.Type = msoReflectionTypeNone
.Shapes("Shape3").Fill.ForeColor.RGB = RGB(0, 0, 0)
.Shapes("Shape3").Reflection.Type = msoReflectionTypeNone
End With
Application.Goto reference:=Worksheets("Janeiro").Range("A70"), Scroll:=True
End Sub
Sub Imagem25_Click()
With ActiveSheet
.Shapes("Shape3").Fill.ForeColor.RGB = RGB(255, 128, 0)
.Shapes("Shape3").Reflection.Type = msoReflectionType1
.Shapes("Shape2").Fill.ForeColor.RGB = RGB(0, 0, 0)
.Shapes("Shape2").Reflection.Type = msoReflectionTypeNone
.Shapes("Shape1").Fill.ForeColor.RGB = RGB(0, 0, 0)
.Shapes("Shape1").Reflection.Type = msoReflectionTypeNone
End With
Application.Goto reference:=Worksheets("Janeiro").Range("A142"), Scroll:=True
End Sub
Thank you xladept for your patience :D
Best regards
Bookmarks