Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Select range using criteria

Column B can have different line numbers keyed in such as
1, 2, 3. I need to import the rows of data to our Lawson
system by first creating a .txt file from Excel. However,
I need to hit 2 separate Lawson tables, the first table
needs all the Line #1 records, and the second needs all
the Line # greater than 1. How can I select a range
dependent on the line number? I looked at many of the
posts and VBA code but can't decide what I need to do.
Any help as always is much appreciated, and I really do
learn...just not as quickly as I'd like! TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Select range using criteria

Try looking at the Autofilter command. You would set the filter to show
just the records you want, then copy those to a new workbook (when you copy
a filtered range, buy default, only the visible rows are copied). You could
do a file saveas in that book to make a text file.

--
Regards,
Tom Ogilvy

"Eva Shanley" wrote in message
...
Column B can have different line numbers keyed in such as
1, 2, 3. I need to import the rows of data to our Lawson
system by first creating a .txt file from Excel. However,
I need to hit 2 separate Lawson tables, the first table
needs all the Line #1 records, and the second needs all
the Line # greater than 1. How can I select a range
dependent on the line number? I looked at many of the
posts and VBA code but can't decide what I need to do.
Any help as always is much appreciated, and I really do
learn...just not as quickly as I'd like! TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Select range using criteria

Thanks Tom, you're right of course. I was thinking
copying filtered data would include the invisible rows;
this should work fine. Thanks again.

-----Original Message-----
Try looking at the Autofilter command. You would set

the filter to show
just the records you want, then copy those to a new

workbook (when you copy
a filtered range, buy default, only the visible rows are

copied). You could
do a file saveas in that book to make a text file.

--
Regards,
Tom Ogilvy

"Eva Shanley" wrote

in message
...
Column B can have different line numbers keyed in such

as
1, 2, 3. I need to import the rows of data to our

Lawson
system by first creating a .txt file from Excel.

However,
I need to hit 2 separate Lawson tables, the first table
needs all the Line #1 records, and the second needs all
the Line # greater than 1. How can I select a range
dependent on the line number? I looked at many of the
posts and VBA code but can't decide what I need to do.
Any help as always is much appreciated, and I really do
learn...just not as quickly as I'd like! TIA



.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
From range and criteria select highest value Sunnyskies Excel Discussion (Misc queries) 8 June 15th 08 03:29 AM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
date criteria to select range Kstalker Excel Worksheet Functions 30 August 23rd 05 07:19 AM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


All times are GMT +1. The time now is 11:06 AM.

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

About Us

"It's about Microsoft Excel"