• 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.

Select A1 sheets : VBA Code.

Hello Team.

I work on huge workbooks with 50 + worksheets after our workings, expected to keep the cursor in A1 sheet in every sheet, Presently doing it manually by going to each sheet and select a1 cell. I think my question make sense.
 
Try this!

Attach this code to a button in the first page, or create as addin so that this code will work for every workbook you open.

Code:
Sub Select_A1()
Dim sht As Worksheet
For Each sht In ActiveWorkbook.Sheets
    sht.Activate
    sht.Range("A1").Select
Next sht
End Sub

Hope you like it.
 
Thanks Monty.

Yes this works, you saved so much time of my team.
Can you help me creating Addin so that i can use this code in any workbook please.
 
Dear Arpana.

First you need to save your workbook as Addin template.

upload_2017-2-18_17-53-41.png

Then below Steps.

Excel add-in
  1. Click the File tab, click Options, and then click the Add-Ins category.
  2. In the Manage box, click Excel Add-ins, and then click Go. The Add-Ins dialog box appears.
  3. In the Add-Ins available box, select the check box next to the add-in that you want to activate, and then click OK.
 
Back
Top