ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding and Selecting Specific Ranges (https://www.excelbanter.com/excel-programming/333148-finding-selecting-specific-ranges.html)

[email protected]

Finding and Selecting Specific Ranges
 
This is my first post, so please bare with me if I am not as detailed
as required.

Here is a quick layout of my sheet.

Date Account Amount Description
5/1/2005 12345 10 Expense
11111 20 Expense
5/2/2005 136589 200 Cash
135965 1560 Cash

I am trying to write code that will search the date column and then
select all the data from 5/1/2005 and then use it somewhere else and
then go back and select the 5/2/2005 data and so on.

Thanks for all the help.


Bob Phillips[_7_]

Finding and Selecting Specific Ranges
 
Bit more specific. Use it somewhere else means what exactly?

--
HTH

Bob Phillips

wrote in message
ups.com...
This is my first post, so please bare with me if I am not as detailed
as required.

Here is a quick layout of my sheet.

Date Account Amount Description
5/1/2005 12345 10 Expense
11111 20 Expense
5/2/2005 136589 200 Cash
135965 1560 Cash

I am trying to write code that will search the date column and then
select all the data from 5/1/2005 and then use it somewhere else and
then go back and select the 5/2/2005 data and so on.

Thanks for all the help.




[email protected][_2_]

Finding and Selecting Specific Ranges
 
What I want to do is take the range and then copy it to another sheet
and then re-format it for an auto upload into a database. So once the
range has been defined, I am going to copy the range to the other sheet
and then format it to desired settings.

Hope this is more specific.


Bob Phillips[_7_]

Finding and Selecting Specific Ranges
 
Can I suggest that you start by recording a macro.

Go through the steps of using DataFilterAutofilter, pick the required
date, copy the visible rows and paste them, and do your formatting, all
whilst recording.

You should have a good start code to work with then.

--
HTH

Bob Phillips

wrote in message
oups.com...
What I want to do is take the range and then copy it to another sheet
and then re-format it for an auto upload into a database. So once the
range has been defined, I am going to copy the range to the other sheet
and then format it to desired settings.

Hope this is more specific.





All times are GMT +1. The time now is 01:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com