Copy And Paste From One Workbook to Another

accjduncan

New Member
Joined
Aug 2, 2011
Messages
3
Hi,
I have used MrExcel for answers more times than I can mention. You folks are great! :)
My problem is this: I have a Workbook (I'll call it "My Workbook") with multiple sheets, and a seperate database (I'll call it "My Database"). I'm trying to take the value of Range("O8") from sheet 4 of the workbook ("My Workbook"), search column A of the excel database ("My Database") to find a match. If a match is found, the macro will add data from Range("O12") and Range("O18") to that row, in columns B and C. If no match is found, the macro adds the data from Range("O8"), Range("O12"), and Range("O12") from sheet 4 of the workbook ("My Workbook")to the next bank row in columns A-C of the database ("My Database").

Any help would be greatly appreciated!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
My bad: The macro should add data to the database from Range("O8"), Range("O12"), and Range("O18") of sheet 4 of the workbook if no match is found.
I'm using excel 2003
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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