Results 1 to 3 of 3

Thread: Call AutoFilter function through VBA?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2003
    Location
    USA, East Coast
    Posts
    257

    Call AutoFilter function through VBA?

    Can I call the AutoFilter function programatically with VBA to work on Form data - rather than using it on a Worksheet?

    Or better yet, While focus is on a form, can I call AutoFilter to work on a Worksheet containing data?

    Also when do you use the Worksheet object and when do you use the Sheets object?

    Thanks,
    CJ
    Last edited by CyberJar; Mar 10th, 2004 at 10:04 PM.

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178

    Re: Call AutoFilter function through VBA?

    >Can I call the AutoFilter function programatically with VBA to work on Form data - rather than using it on a Worksheet?
    -
    No
    '-------------------------------------------------------------------------
    >Or better yet, While focus is on a form, can I call AutoFilter to work on a Worksheet containing data?
    '-
    Yes. I suggest you use the macro recorder to get started.
    '----------------------------------------------------------------------------
    >Also when do you use the Worksheet object and when do you use the Sheets object?
    '-
    Interesting question. I do not know of any difference in usage.
    '-------------------------------------------------------------------------
    Regards
    BrianB
    -------------------------------

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2003
    Location
    USA, East Coast
    Posts
    257
    Thank you for your responses Brian.

    CJ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width