+ Reply to Thread
Results 1 to 4 of 4

Advanced Find and Replace VBA Help

Hybrid View

  1. #1
    Registered User
    Join Date
    03-02-2006
    Location
    USA
    MS-Off Ver
    O365 PC, Version 2207, 64bit
    Posts
    66

    Advanced Find and Replace VBA Help

    Hello All- be gentile please!

    I have a find and replace situation that I’m attempting to resolve but have been unsuccessful.

    Sheet “Last Week” Contains last week’s data
    Sheet “This Week” contains some updated information that I want to replace, but only if there is updated information.
    Sheet “Update” to contain the “This Week” updated data, but I need to preserve the comments related to the specific widget(product number)

    Workbook attached
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Advanced Find and Replace VBA Help

    I am not sure if I see a question.
    What is the question?

  3. #3
    Registered User
    Join Date
    03-02-2006
    Location
    USA
    MS-Off Ver
    O365 PC, Version 2207, 64bit
    Posts
    66

    Re: Advanced Find and Replace VBA Help

    Quote Originally Posted by Remotruker View Post
    Hello All- be gentile please!

    I have a find and replace situation that I’m attempting to resolve but have been unsuccessful.

    Sheet “Last Week” Contains last week’s data
    Sheet “This Week” contains some updated information that I want to replace, but only if there is updated information.
    Sheet “Update” to contain the “This Week” updated data, but I need to preserve the comments related to the specific widget(product number)

    Workbook attached
    My question if not clear (Sorry) is how do i write a VBA to make "Update" contain the new data from "This Week" and preserve teh comments related to the specific widget? Also if anything is added or drops off the list some notification would be helpfull there too. I'm thinking a Strikethru if something drops off and a color change if a new widget appears.

  4. #4
    Registered User
    Join Date
    03-02-2006
    Location
    USA
    MS-Off Ver
    O365 PC, Version 2207, 64bit
    Posts
    66

    Re: Advanced Find and Replace VBA Help

    Ok maybe i can Start Over and simplify this:

    Given:
    I have a "Data" Sheet with Raw Data
    Column A has item number, Column B has Qty
    I Have a "Result" Sheet with cells i want to update
    Column R has same item number, Column S has Qty(that needs to be updated)

    Here is what I want to accomplish with VBA:

    Select Sheet "Data"
    X= Cell A1, Y= Cell B1
    Select Sheet "Result"
    Find X
    Replace the next cell to the right with Y
    Find Next Occurrence and replace again (if it exists), If not:
    Select Sheet "Data"
    X = Cell A2, Y=B2

    (repeat the find and replace routine)
    If Sheet "Data" Next item in the list (ex A1000) does not contain data, quit.

+ 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