Help me write my first VBA script

TheMrBanks

New Member
Joined
Apr 23, 2018
Messages
1
Hi,


I'm basicly looking for a more advanced search and replace based on a list.


I have a file which contains a worksheet called "Name" and "Data".
On worksheet "Name" i have column D.
dmjqUH
e7NS9H

This column D contains text.
Example off this text: 1.AA


The column "H" "I" "J" contain the data that needs to be replaced with the correct value from the "Data" worksheet.


But here is the exeption The search and replace in column "H" "I" "J" only needs to be done on cells which contains data.
So the empty cells should be ignored.


Can you please help me to write this VBA script so i can save myself correcting 4000 lines?


See images for more info!

https://ibb.co/e7NS9H
https://ibb.co/dmjqUH


Keywords: VBA, LOOP, SEARCH, REPLACE
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
TheMrBanks,

Welcome to the MrExcel forum.

It would help if we could see your actual raw data workbook/worksheets, and, what the results (manually formatted by you) should look like.


You can post your workbook/worksheets to the following free site (sensitive data changed), mark the workbook for sharing, and, provide us with a link to your workbook:

https://dropbox.com
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,598
Members
449,109
Latest member
Sebas8956

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top