• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 54
  • Last Modified:

check the vba code(Macro) in this file it works fine but I have to apply this code to 4 tables in a sheet

check the vba code(Macro) in this file it works fine but I have to apply this code to 4 tables in a sheet
I have 4 tables in a sheet  and I have to apply the code to all tables  here I have putted the same data  in this 3 tables but the data will be different in these 3tables
Kindly see the sample file and see the macro in it (Vba code in it)
Sample123--2-.xlsm
0
Avinash Singh
Asked:
Avinash Singh
  • 2
1 Solution
 
LET (Learn Excel in Tamil)Reporting Automation ExpertCommented:
Use this code to move to next active table, this is just to move one table to next table, if you brief your requirement completely will help to give more details


ActiveCell.End(xlDown).End(xlDown).Select

Open in new window

0
 
Avinash SinghAuthor Commented:
modify the vba code as per given condition
0
 
Krishna MTechnical AssociatCommented:
Hi,

First set the names for each table and build a colde like below

    Dim oName As Name
    For Each oName In ActiveWorkbook.Names
        Application.Goto Reference:=oName.Name
        Call Step4inSheet2
    Next oName

Open in new window

1
 
Avinash SinghAuthor Commented:
Thnx krishna M sir for giving ur precious time to this post
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now