Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1065013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T19:44:54+00:00 2026-05-16T19:44:54+00:00

I have a sheet in which I’m entering values in cell from two different

  • 0

I have a sheet in which I’m entering values in cell from two different tables.First table has 3 fields so sheet1.range from A1 to c23 gets filled with this table values.Now the second table has two fields and I fill Sheet1 from A25 till B37.

Now each of the table gives me column headings at A1,B1,C1 for the first table and A25,B25 for the second table.So I want to traverse through this entries but when I encounter table2 entries or more specifically a column heading I should halt and traverse through them for a different process altogether.

The number of rows for either table is not fixed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T19:44:54+00:00Added an answer on May 16, 2026 at 7:44 pm

    You can process each table row-by-row and use an empty cell in first column as a break criterium. You however have to asume an absolute max of rows or a constant number of tables in your sheet unless you want to search until line 65k …. example:

    Sub Test()
    Dim MyR As Range, Idx As Integer
    
        Set MyR = [A1]
        Idx = 1
    
        Debug.Print "Header 1 = " & MyR(Idx, 1)
    
        'advance to end of table
        Do While MyR(Idx, 1) <> ""
            Idx = Idx + 1
        Loop
    
        'advance to next header (could be one or more blank lines)
        Do While MyR(Idx, 1) = ""
            Idx = Idx + 1
        Loop
    
        Debug.Print "Header 2 = " & MyR(Idx, 1)
    
        'etc
    
    End Sub
    

    Hope that helps …. good luck – MikeD

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a sheet in which I have data from two different sources.I've a
I made a Sheet which I have now converted to a UserForm but the
I have a couple of columns of data in an excel sheet which I
I have few columns in an excel sheet for which I need to do
I have a few pages which I'd like to have the same background across,
I have a JSP form which is made of <input type=file/> tag alone for
In an Excel sheet I will receive the data, which in turn I need
I have the following HTML on my page: <div id=mypanel> <span>SomeText</span> <span>SomeText2</span> <span>SomeText3</span> <span>SomeText4</span>
I have always used Visual Studios built in GUI support for configuring my projects,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.