kateebebe
asked on
VBA Find and Replace using data table
Would like to do the following using VBA
A: Find and Replace the values in named range ("BizClass"), with its corresponding value in another named range ("occupancy").
Sheet1, Column D = NamedRange "BizClass"
Occupancy Tab: Contains a list of matching data.
Objection: Find the value in "Biz Class" named range in the data in 1st column of "Occupancy" named range and replace it with the value that is in the 3rd column.
Find-Replace.xlsm
A: Find and Replace the values in named range ("BizClass"), with its corresponding value in another named range ("occupancy").
Sheet1, Column D = NamedRange "BizClass"
Occupancy Tab: Contains a list of matching data.
Objection: Find the value in "Biz Class" named range in the data in 1st column of "Occupancy" named range and replace it with the value that is in the 3rd column.
Find-Replace.xlsm
ASKER
That works almost exactly as needed. THere are instances where there would only be one line item to do the "Find/Replace" on. It seems this only works if data expands beyond row 2. Could this be changed?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That is perfect!! Thank you so much for your quick assistance. It is appreciated.
You're welcome! Glad I could help.
Thanks for the feedback.
Thanks for the feedback.
Open in new window
Then try this...
Open in new window
In the attached, click the button called "Find & Replace" on Sheet1 to run the code.Find-Replace.xlsm