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

  • SEARCH
  • Home
  • 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 8996183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:43:13+00:00 2026-06-15T23:43:13+00:00

I have an excel sheet where I can have columns between 200 to 260

  • 0

I have an excel sheet where I can have columns between 200 to 260 range,means it is in dynamic nature. But there is two columns fixed which can always be in consecutive way- They are Hierarchy, Parent Business Process ID.My goal is to locate in which column it is in the first row.It would always be in the first Row – that is quite sure.But its column number is not fixed. So is there anyway to find out directly in which column of the first row it is present every time whenever my script would run. I am using basic looping technique to find it out – which is increasing overall performance my code- So i want to minimize it.

Code

   columncount=1

 Do untill ob6.Cells(1,columncount).Value = "Parent Business Process ID" 

   columncount=columncount+1

 Loop

Thanks,

  • 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-06-15T23:43:14+00:00Added an answer on June 15, 2026 at 11:43 pm

    Assuming ob6 is your worksheet object:

    columncount = Application.WorksheetFunction.Match("Parent Business Process ID", ob6.Rows(1), 0)

    Will set columncount to the number of the first column matching your search criteria.

    Note that if your first row does not include the search term, than an error will occur.

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

Sidebar

Related Questions

I have a Excel sheet with two columns and I need to create new
I have a dynamic range in an Excel sheet. DATA_TABLE =OFFSET(DATA!$B$3,0,0,COUNTA(DATA!$B:$B)-1,0) I want to
I have two columns in my excel sheet like that: 1234 | 548 21596
I have an Excel sheet which has 200 columns. Now number of rows are
I have an Excel sheet with two column, one is a number , and
1) I have been working on fetching data from an excel sheet i can
I have an excel sheet,which has 144 coulms-(4 columns contains one set).i.e 36 sets
I have an excel sheet with 8 rows and 4096 columns.I am trying to
I have 5 columns (SNO,Name,Phone,Address,Pin) in excel(2003/2007). Excel can have n no. of records.
I have a dataset of 15 columns. I want to generate an excel sheet

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.