+ Reply to Thread
Results 1 to 5 of 5

Find Word and Loop to End

  1. #1
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    Posts
    172

    Find Word and Loop to End

    I receive a report which contains 2 sets of data and I use this data to create an output file. The problem I have is that the output file I create uses the second set of data and the start point of this data varies from report to report. I have used the find function and offset to get the first line of where my output file starts, but now that I am there how do I use this cell value to loop through to the last cell in the column which contains data? I have provided an extract of the point I am stuck at. thanks for anyone who can help.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Find Word and Loop to End

    For x = ActiveCell.Offset(1, 0) to ActiveCell.Offset(1, 0).end(xlDown)
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    Posts
    172

    Re: Find Word and Loop to End

    Nathan, thanks for getting straight back on this. However, I get a runtime error 13 Type Mismatch on this line

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find Word and Loop to End

    Amended code. You need to include an error trapping if nothing is found.
    This is not a final code. If you could attach a sample, it is easy to fix it.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    Posts
    172

    Re: Find Word and Loop to End

    Thank you both for your efforts AB33 this works perfectly - I shall complete the post with Solved

+ 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. [SOLVED] Find word in text string and return word adjacent to the left
    By eadamquinn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-06-2014, 03:22 PM
  2. VBA Loop, Find, Copy, Repeat Loop
    By sparx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2013, 06:25 AM
  3. [SOLVED] Excel macro- Find replace an itallic font word with a regular word?
    By thisisaboutwork in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2013, 01:48 PM
  4. Performing Find loop on all Word documents in a folder, writing results to a Spreadsheet
    By fraanchtoast in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 05:02 PM
  5. Loop a column on Sheet1 and loop a row on Sheet2 to find a match
    By johnnywinter in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-13-2009, 02:09 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