Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default macro to scan list

If anyone can help that would be great,

I need a macro to scan a list of text in column A of sheet1, several text
names are repeated multiple times in this column. I then want the macro to
return only one cell of each text name that occurs in the list to column B
on sheet2.

I know this should be easy, but Im still learing. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default macro to scan list

Hi Matto;

This will do what your talking about on the same sheet.
Excel will not let you do a unique filter to a different
location on a different sheet.

Sub Macro1()
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Range("B1" _
), Unique:=True


End Sub

Thanks,

Greg

-----Original Message-----
If anyone can help that would be great,

I need a macro to scan a list of text in column A of

sheet1, several text
names are repeated multiple times in this column. I then

want the macro to
return only one cell of each text name that occurs in the

list to column B
on sheet2.

I know this should be easy, but Im still learing. Thanks!
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default macro to scan list

Hi,
This functionality already exists in Excel:
-select your data (column A) including the header name.
-menu Data Filter Advanced Filter:
Action: Copy to another location
Criteria Range: <leave blank
Copy To: $B$1 <---- to copy to column B
Unique Record Only: make sure it is checked
Click OK
Done!

Comment: the feature doesn't allow you to send the filtered data to another
sheet though. However, you can use it to filter within the same sheet as we
just did, then copy the result to the other sheet.

Regards,
Sebastien
"Matto" wrote:

If anyone can help that would be great,

I need a macro to scan a list of text in column A of sheet1, several text
names are repeated multiple times in this column. I then want the macro to
return only one cell of each text name that occurs in the list to column B
on sheet2.

I know this should be easy, but Im still learing. Thanks!

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 do i fax a scan k Excel Discussion (Misc queries) 4 March 26th 09 03:35 PM
I need to scan a column Vercingetorix.XIII[_2_] Excel Worksheet Functions 6 September 23rd 08 05:23 PM
Scan column for first of a list Chip Excel Discussion (Misc queries) 1 May 24th 08 05:19 PM
how do i scan documents T Nickel Setting up and Configuration of Excel 1 September 4th 07 03:58 PM
Renaming scan files with a list of drawing names in excel spreadsh Ravi Excel Discussion (Misc queries) 1 February 8th 07 04:01 AM


All times are GMT +1. The time now is 03:17 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"