+ Reply to Thread
Results 1 to 9 of 9

Finding the NEXT bold cell

  1. #1
    Registered User
    Join Date
    04-29-2004
    Posts
    92

    Finding the NEXT bold cell

    Hello again! Alright, I originally posted this in the excel general section but this is something needed to be done in vba. Which is fine Now.. For what im trying to do...

    Using the code below I can find A cell using the .find method. The message box shows the cell address. I need to find the next bold cell after the found cell. Then copy it to a new sheet.

    Will say a3 is cash.
    ;---code finds a3 for cash
    ;---code search for next bold after found cell and finds a6
    ;---code copies a6 to a1 of new sheet.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835
    try
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello justchris,

    Here is an example macro that uses FindNext to keep searching a range.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  4. #4
    Registered User
    Join Date
    04-29-2004
    Posts
    92
    Awesome. Thanks for the replys. Going to check em out now

  5. #5
    Registered User
    Join Date
    04-29-2004
    Posts
    92
    Thank you jindon!! Thats really close. Now I need to figure out how to get it to search another column for the bold instead excluding a column from search. I tried changing it to search by range and that works too but I need to skip a whole column in the search. My totals will come from K, but there are bold totals in column j so doing it by range isnt it. Using your example will help a lot .
    One step closer
    Chris
    Last edited by justchris; 06-14-2008 at 02:36 AM.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835
    1) change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    2) change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-29-2004
    Posts
    92

    Thumbs up

    Awesome.. Offset was it! My final code looks like this
    Please Login or Register  to view this content.
    And it works like a charm!

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Might be worth clearing the find format at the end

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  9. #9
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello justchris,

    Just a side note to VBA Noob's post. This function wasn't available in Excel 2000. I don't have Excel 2002, so I can't say it was introduced here. It is definitely in Excel 2003.

    Sincerely,
    Leith Ross

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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