• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

need a macro to go to an exist plan according the value of a cell

Imagine a cell A1, with value = 1 (number format). Execute a macro to go to a plan called "1" (same value of cell A1 of the original plan).
I have few cells, from A1 to A25, and 1 plan called "original" and plans with the same name of cell range (from 1 to 25).
Once I go to A20, the value within is 20, for example, I need to execute the macro and jump to plan called 20.

I hope that I was clear.
Thank you.
 
Eduardo

Firstly, Welcome to the Chandoo.org Forums

Can you please upload a sample file which indicates your requirements
 
Hi Hui, the sample file that you request.
Thanks
Eduardo

Firstly, Welcome to the Chandoo.org Forums

Can you please upload a sample file which indicates your requirements
 

Attachments

  • test for chandoo forum.xlsx
    14.5 KB · Views: 0
  • taylor sample test.xlsx
    12 KB · Views: 0
you can use Worksheet_BeforeDoubleClick Event for this Macro. Whenever you double click on Plan, you will go to the same Plan. Please take a look on sample file.

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

Dim i As String
On Error Resume Next

i = ActiveCell.Value
Sheets(i).Activate

On Error GoTo 0


End Sub
 

Attachments

  • test for chandoo forum.xlsm
    22.6 KB · Views: 0
Back
Top