Thread: Macro chaning
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.newusers
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Macro chaning

pcor

Selection.AutoFilter Field:=ActiveCell.Column, Criteria1:="<"


Gord Dibben MS Excel MVP

On Wed, 20 Sep 2006 14:34:02 -0700, pcor wrote:

I currently use the following macro:
Selection.AutoFilter Field:=1, Criteria1:="<"

How can I change thus macro so that the "1"in field would be changed to the
cell that is selected.
(IE how do I capture the cell where the cursor is located when I run this
macro
In visual basic the code would be something like:
d$=celladdress
Field=d$
Thanks