#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Excel VBA

I have a set of data that contains:
- 10 rows that start with 001
- 10 rows that start with 002
- 10 rows that start with 003.

How should the macro be written to find only the rows that start with 002
and copy those to another spreadsheet?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Excel VBA

for each cell in Range("A1:A30")
if cell.Text = "002" then

Next

also, if you are copying or something:
Perhaps something on this page

http://www.rondebruin.nl/copy5.htm

at Ron de Bruin's site

--
Regards,
Tom Ogilvy



--
Regards,
Tom Ogilvy


"gregory" wrote:

I have a set of data that contains:
- 10 rows that start with 001
- 10 rows that start with 002
- 10 rows that start with 003.

How should the macro be written to find only the rows that start with 002
and copy those to another spreadsheet?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"