Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AMK
 
Posts: n/a
Default select records with a specific value

How can I select only those records with a "1" in col A and highlight only
col C of the same record(s) for copying? I'd like to put this in a Macro.

Thanks
--
Al
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Al,

Columns("A:A").AutoFilter Field:=1, Criteria1:="1"
Intersect(Columns("C:C"), ActiveSheet.UsedRange) _
.SpecialCells(xlCellTypeVisible).Copy

HTH,
Bernie
MS Excel MVP


"AMK" wrote in message
...
How can I select only those records with a "1" in col A and highlight only
col C of the same record(s) for copying? I'd like to put this in a Macro.

Thanks
--
Al



  #3   Report Post  
AMK
 
Posts: n/a
Default

entered your suggestion into a macro as follows:
Columns("A:A").AutoFilter Field:=1, Criteria1:="1"
Intersect(Columns("C:C"), ActiveSheet.UsedRange _
.SpecialCells(xlCellTypeVisible).Copy

Will not run?????
Please let me know if i'm misrepresenting something.
Thanks
--
Al


"Bernie Deitrick" wrote:

Al,

Columns("A:A").AutoFilter Field:=1, Criteria1:="1"
Intersect(Columns("C:C"), ActiveSheet.UsedRange) _
.SpecialCells(xlCellTypeVisible).Copy

HTH,
Bernie
MS Excel MVP


"AMK" wrote in message
...
How can I select only those records with a "1" in col A and highlight only
col C of the same record(s) for copying? I'd like to put this in a Macro.

Thanks
--
Al




  #4   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Al,

What error messages do you get? Is the sheet of interest active at the time?
Are you using a commandbutton, or using Tools / Macro/Run? Where did you
put the code?

Bernie


"AMK" wrote in message
...
entered your suggestion into a macro as follows:
Columns("A:A").AutoFilter Field:=1, Criteria1:="1"
Intersect(Columns("C:C"), ActiveSheet.UsedRange _
.SpecialCells(xlCellTypeVisible).Copy

Will not run?????
Please let me know if i'm misrepresenting something.
Thanks
--
Al


"Bernie Deitrick" wrote:

Al,

Columns("A:A").AutoFilter Field:=1, Criteria1:="1"
Intersect(Columns("C:C"), ActiveSheet.UsedRange) _
.SpecialCells(xlCellTypeVisible).Copy

HTH,
Bernie
MS Excel MVP


"AMK" wrote in message
...
How can I select only those records with a "1" in col A and highlight
only
col C of the same record(s) for copying? I'd like to put this in a
Macro.

Thanks
--
Al






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
Deleting specific records from a column [email protected] Excel Discussion (Misc queries) 2 June 16th 05 04:02 AM
Select specific cell Shawn Excel Discussion (Misc queries) 1 April 28th 05 09:00 PM
How do I pause a macro to select specific cells lee Excel Worksheet Functions 1 April 2nd 05 02:11 PM
How do I select only specific parts of one field? wearfinkle Excel Worksheet Functions 1 February 21st 05 03:46 PM
Number of records by Month that meet a specific requirement Keith Brown Excel Worksheet Functions 1 February 5th 05 05:42 PM


All times are GMT +1. The time now is 02:43 PM.

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"