+ Reply to Thread
Results 1 to 9 of 9

Find specific cell, then dim its value as string

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Find specific cell, then dim its value as string

    Need to:

    1. Find column with header title "quantity" (i.e. text in first row for that column is "quantity")
    2. Dim the contents of the third row of that column as a string
    Last edited by ks100; 01-02-2014 at 03:57 PM.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Find specific cell, then dim its value as string

    Please Login or Register  to view this content.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find specific cell, then dim its value as string

    Perhaps:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: Find specific cell, then dim its value as string

    Quote Originally Posted by JOHN H. DAVIS View Post
    Perhaps:

    Please Login or Register  to view this content.
    Perfect, thank you

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Find specific cell, then dim its value as string

    With find function:
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find specific cell, then dim its value as string

    You're welcome. Glad to help out and thanks for the feedback.

  7. #7
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Find specific cell, then dim its value as string

    @JOHN H. DAVIS, you are the expert, but to minimize the interaction between VBA and Excel, generally I would not use activecell or select. Is there a specific reason for this?

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find specific cell, then dim its value as string

    Quote Originally Posted by berlan View Post
    @JOHN H. DAVIS, you are the expert, but to minimize the interaction between VBA and Excel, generally I would not use activecell or select. Is there a specific reason for this?
    Not really. Your code is more efficient and performs the same tasks in this circumstance. However, I find that activecell has it's place in coding and I tend to rely on it probably a bit more than I should.

  9. #9
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Find specific cell, then dim its value as string

    Quote Originally Posted by JOHN H. DAVIS View Post
    Not really. Your code is more efficient and performs the same tasks in this circumstance. However, I find that activecell has it's place in coding and I tend to rely on it probably a bit more than I should.
    Okay, I see, thanks for your reply

    All best

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA Find all instances of a specific string and copying the number of count in cell
    By dilshandil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2013, 10:27 PM
  2. Find a specific string
    By AK69 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-26-2011, 12:06 PM
  3. Find a specific string in a cell
    By Jeroen1000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2009, 08:14 AM
  4. Find a specific string in a cell
    By loren.pottinger in forum Excel General
    Replies: 8
    Last Post: 08-22-2006, 03:50 PM
  5. [SOLVED] Find a specific string in a cell
    By loren.pottinger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2006, 12:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1