midfieldgeneral11
Active Member
- Joined
- Feb 11, 2004
- Messages
- 464
Can you help?
I have two worksheets in a Excel spreadsheet.
One is a Download of 15000 items of data from our database where we have Client ID, Name, Surname, Post Code and Date of Birth.
The Other is Summary sheet which is going to be used as a lookup table.
The summary sheet in A1 is where I want the user to place in a Date of Birth lets Say 12/07/2011.
I have created some formulae’s next to the download where it has marked in G1 to G15000 where the Date of Birth matches on the Download to the summary sheet with a simple M. So my download has now marked all entries with the date of birth 12/07/2011 with a M
I can now use filters to get any entries which are coming up with M and which matched the Date of Birth.
When I use a Macro to copy these entries into the summary sheet it reads that the range of where the entries are on the spreadsheet.
Range("B48:G9420").Select
Selection.Copy
What I want is a formulae to be placed in Macro to select the whole range of the download so therefore by the push of a button by the user they can put their date in and it goes into the download marks the entries it has found and copy into the summary sheet? I don’t want the macro to always read
Range("B48:G9420").Select
Selection.Copy
I hope this makes sense?
Thanks
Simon
I have two worksheets in a Excel spreadsheet.
One is a Download of 15000 items of data from our database where we have Client ID, Name, Surname, Post Code and Date of Birth.
The Other is Summary sheet which is going to be used as a lookup table.
The summary sheet in A1 is where I want the user to place in a Date of Birth lets Say 12/07/2011.
I have created some formulae’s next to the download where it has marked in G1 to G15000 where the Date of Birth matches on the Download to the summary sheet with a simple M. So my download has now marked all entries with the date of birth 12/07/2011 with a M
I can now use filters to get any entries which are coming up with M and which matched the Date of Birth.
When I use a Macro to copy these entries into the summary sheet it reads that the range of where the entries are on the spreadsheet.
Range("B48:G9420").Select
Selection.Copy
What I want is a formulae to be placed in Macro to select the whole range of the download so therefore by the push of a button by the user they can put their date in and it goes into the download marks the entries it has found and copy into the summary sheet? I don’t want the macro to always read
Range("B48:G9420").Select
Selection.Copy
I hope this makes sense?
Thanks
Simon