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!
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!