+ Reply to Thread
Results 1 to 4 of 4

Search for decimal and when found pass row number to rest of string

  1. #1
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Search for decimal and when found pass row number to rest of string

    Hi All,
    I hope someone can help with this issue. I am trying to search through column "I" for numbers that are decimals, when the first decimal is found, use the row number that the first decimal appears in the string that populates the bookmarks stored in a word template I have created.
    The code I have so far checks for the decimal and then populates the bookmarks, however it requires me to input the ranges manually, meaning I can set them as the first row in my tabel. But if the decimal appears in the second row and not the first I'm bookmarking the wrong data.
    Here is the code I have so far;
    Please Login or Register  to view this content.
    Any help would be great!

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Search for decimal and when found pass row number to rest of string

    I am not certain of your problem but perhaps you wish:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Search for decimal and when found pass row number to rest of string

    hi beenbee

    you are using 2003 which I cannot get to so I cannot even get the code to compile (fails on the DIm wrdApp as Word.Application line)

    However, it also seems (when i paste the code into a workbook woth indenting that you are missing a "Next" statement immediately before the end sub (needed for the For each loop)

    That may be a clue to why you only get one bookmark, best I can do without being able to even compile the code (and I have never tried to update word from excel so I have little experience in how to overcome the error)

    sorry i cannot be of more help

    Jmac1947

  4. #4
    Forum Contributor
    Join Date
    10-07-2013
    Location
    Wilts, England
    MS-Off Ver
    Excel 2013
    Posts
    100

    Re: Search for decimal and when found pass row number to rest of string

    Hi, Thank you both for your responses. Izandol that works well, thank you.
    jmac1947 the decimal section is just 25lines of a 950line code, which is so unwhielding (I have ask'd for help to condense it, if its possible but no one responded.) the next comes further down.
    Thank you both

+ 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. Loop through Column to find decimal then pass found row to bookmark code
    By beenbee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2014, 11:13 AM
  2. [SOLVED] Search for string and test the character that is found after the string
    By flipjarg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2013, 04:27 PM
  3. auto enter number macro then search for rest of number
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 04:24 PM
  4. [SOLVED] Search for string across header row, then search for another string down found column
    By TucsonJack in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2012, 02:09 PM
  5. Replies: 2
    Last Post: 10-21-2011, 04:13 AM

Tags for this Thread

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