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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,214,381
Messages
6,119,192
Members
448,874
Latest member
Lancelots

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