Find and paste value if found VBA help!

Zomgz92

New Member
Joined
Dec 11, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Was wondering if anyone could help me with this.

Basically I would have two work books with changing names, but would consistently have the same format.
The unnique idetification number in both is in column A, and the values are in column E.

I would want to replace the values in column E in the second workbook, with the values of column E in first workbook. Normally, I would use Ctrl+F, and find and replace and manually do it.
I was wondering if there is a VBA which could do this for me.

One which goes through all the values in column A in first workbook, and if it matches the second work books column A, replace the Column E in second workbook with the column E in the first work book!

If any hep or direction could be provided would be amazing! :) .
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
We always need specifics.
Are we really dealing with different Workbooks or different Worksheets?
You said:
Basically I would have two work books with changing names

And if the Workbook name is always changing that might be a difficult situation for me.
And if we are dealing with different worksheets can you provide the sheet named.

Please be specific and maybe I can help you
 
Upvote 0
We always need specifics.
Are we really dealing with different Workbooks or different Worksheets?
You said:
Basically I would have two work books with changing names

And if the Workbook name is always changing that might be a difficult situation for me.
And if we are dealing with different worksheets can you provide the sheet named.

Please be specific and maybe I can help you
Hi! Thank you for replying :). Sorry for not being clear. There are two different workbooks . The Source workbook name and worksheet are variable, but destination will have the word "CAT" in it . Sheet name is vlookup !

If it is not possible to have variables, is there a way to have a prompt box pop up where you can define the name when you hit the vba :)?
 
Upvote 0
Hi! Thank you for replying :). Sorry for not being clear. There are two different workbooks . The Source workbook name and worksheet are variable, but destination will have the word "CAT" in it . Sheet name is vlookup !

If it is not possible to have variables, is there a way to have a prompt box pop up where you can define the name when you hit the vba :)?
This is beyond my knowledgebase.
I will continue to monitor this thread to see what I can learn.
 
Upvote 0

Forum statistics

Threads
1,215,641
Messages
6,125,982
Members
449,276
Latest member
surendra75

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