Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2007 is giving me such a headache;
Recorded macro code Columns("B2:B2819").AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=Range("AB65000"), Unique:=True Should extract 6 values When run from inside a procedure it fails to extract anything; When run manually without a macro running it works fine; Additional info: Column A is already filtered to 1 value, now I need to get the associated values from column B; At this point i have already ran extract unique on column A with no problem |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Range("B2:B2819").AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Range( _ "AB65000"), unique:=True On Nov 11, 12:24*am, headly wrote: Excel 2007 is giving me such a headache; Recorded macro code Columns("B2:B2819").AdvancedFilter Action:=xlFilterCopy, _ * * * *CopyToRange:=Range("AB65000"), Unique:=True Should extract 6 values When run from inside a procedure it fails to extract anything; When run manually without a macro running it works fine; Additional info: Column A is already filtered to 1 value, now I need to get the associated values from column B; At this point i have already ran extract unique on column A with no problem |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't do advanced filtering, but I don't see any criteria.
-- HTH, Barb Reinhardt "headly" wrote: Excel 2007 is giving me such a headache; Recorded macro code Columns("B2:B2819").AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=Range("AB65000"), Unique:=True Should extract 6 values When run from inside a procedure it fails to extract anything; When run manually without a macro running it works fine; Additional info: Column A is already filtered to 1 value, now I need to get the associated values from column B; At this point i have already ran extract unique on column A with no problem |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Problem is Columns("B2:B2819")
Should be or Columns("B:B") or Range("B1:B2819") Note that the header must be included when using advanced filter or the first value becomes the column header in the filtered range. -- Regards, OssieMac "headly" wrote: Excel 2007 is giving me such a headache; Recorded macro code Columns("B2:B2819").AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=Range("AB65000"), Unique:=True Should extract 6 values When run from inside a procedure it fails to extract anything; When run manually without a macro running it works fine; Additional info: Column A is already filtered to 1 value, now I need to get the associated values from column B; At this point i have already ran extract unique on column A with no problem |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My apologies if this post twice. I got an error when trying to post the first
time. The problem is Columns("B2:B2819") Should be or Columns("B:B") or Range("B1:B2819") Note that the header must be included when using advanced filter or the first value becomes the column header in the filtered range. -- Regards, OssieMac "headly" wrote: Excel 2007 is giving me such a headache; Recorded macro code Columns("B2:B2819").AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=Range("AB65000"), Unique:=True Should extract 6 values When run from inside a procedure it fails to extract anything; When run manually without a macro running it works fine; Additional info: Column A is already filtered to 1 value, now I need to get the associated values from column B; At this point i have already ran extract unique on column A with no problem |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro hangs up often but sometimes works fine | Excel Worksheet Functions | |||
Macro works fine on PC; fails on Mac | Excel Programming | |||
pivot table - works manually not by macro | Excel Programming | |||
Solver GUI works fine, but the VBA macro won't return any results | Excel Programming | |||
Macro works fine in xl2002 but does not in xl 2000 | Excel Programming |