I have an excel sheet that our research lab uses to update our mouse colony. In addition, every week a veteranarian emails a list of new mice that they numbered for us
I would like to take the information from weekly email spreadsheet and have a macro button on the main sheet to open the emailed sheet and copy certain information from it and append it to the bottom of the sheet. There are also some strings I want altered upon the copying of text:
As an example...on my main sheet
Column A: corresponds to the mouse number
Column B: mouse sex (written as Male or Female)
Column H: date of birth
Column L: mother ID number (written as just a number)
Column R: father ID number (written as just a number)
On the sheet that gets emailed to us each week
Column A: new mouse number (the first mouse listed is NOT always in A1 so the code would need to search column A for the first numeric value and copy cell values in that row that will correspond to the main sheet listed below)
Column B: date of birth
Column D: mouse sex (written as M or F - needs to be converted to "Male or Female" on the main sheet)
Column E: mother ID number (written as a number followed by a text string that needs to be removed when copied to the main sheet)
Column F: father ID number (written as number followed by text string that needs to be removed)
So basically, when I click the button. I want a fileopen box to pop up so i can select my import sheet then I want the macro to search for the first new mouse in the import list and copy the corresponding information to the main sheet at the first blank row on the bottom of the sheet
So if my last mouse record is in row 1000, I want all new mice to be in the rows 1001 and down.
Column A Import Sheet ----> Column A Main Sheet
Column B Import Sheet ----> Column H Main Sheet
Column D Import Sheet ----> Column B Main Sheet (changing M or F on the import, to Male or Female on the Main sheet)
Column E Import Sheet ----> Column L Main Sheet (change number followed by text to just the number)
Column F Import Sheet ----> Column R Main Sheet (change number followed by text to just the number)
Then after copying the last mouse record on the Import Sheet, I would like the imported sheet to close
Thanks!
I would like to take the information from weekly email spreadsheet and have a macro button on the main sheet to open the emailed sheet and copy certain information from it and append it to the bottom of the sheet. There are also some strings I want altered upon the copying of text:
As an example...on my main sheet
Column A: corresponds to the mouse number
Column B: mouse sex (written as Male or Female)
Column H: date of birth
Column L: mother ID number (written as just a number)
Column R: father ID number (written as just a number)
On the sheet that gets emailed to us each week
Column A: new mouse number (the first mouse listed is NOT always in A1 so the code would need to search column A for the first numeric value and copy cell values in that row that will correspond to the main sheet listed below)
Column B: date of birth
Column D: mouse sex (written as M or F - needs to be converted to "Male or Female" on the main sheet)
Column E: mother ID number (written as a number followed by a text string that needs to be removed when copied to the main sheet)
Column F: father ID number (written as number followed by text string that needs to be removed)
So basically, when I click the button. I want a fileopen box to pop up so i can select my import sheet then I want the macro to search for the first new mouse in the import list and copy the corresponding information to the main sheet at the first blank row on the bottom of the sheet
So if my last mouse record is in row 1000, I want all new mice to be in the rows 1001 and down.
Column A Import Sheet ----> Column A Main Sheet
Column B Import Sheet ----> Column H Main Sheet
Column D Import Sheet ----> Column B Main Sheet (changing M or F on the import, to Male or Female on the Main sheet)
Column E Import Sheet ----> Column L Main Sheet (change number followed by text to just the number)
Column F Import Sheet ----> Column R Main Sheet (change number followed by text to just the number)
Then after copying the last mouse record on the Import Sheet, I would like the imported sheet to close
Thanks!