Results 1 to 3 of 3

Please explain this basic code - New to VBA

Threaded View

  1. #1
    Registered User
    Join Date
    12-16-2014
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    10

    Please explain this basic code - New to VBA

    Hi-

    I'm just stating out with VBA assigning basic macros to buttons and such for now.
    I was wondering if somebody could explain this code to me. It automatically updates an advanced filter based on the given criteria. (Code from extended office)

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Range("A5:D21").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=Range _
    ("A1:C3"), Unique:=False
    End Sub
    Also, how do I post code so it shows in a better format?
    Thanks!
    Last edited by alansidman; 01-10-2018 at 09:06 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] explain use of step 2 in VBA code
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-26-2016, 11:15 AM
  2. Explain VBA Code
    By love2waltz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2015, 12:40 PM
  3. Ribbon code... Can someone please explain!
    By RustyNail in forum Excel General
    Replies: 1
    Last Post: 05-23-2015, 05:05 AM
  4. Explain code
    By josros60 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-04-2014, 12:33 AM
  5. Can some one explain this code for me ?
    By chriskingkiller in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2013, 02:14 PM
  6. Can some one explain this code for me ?
    By chriskingkiller in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2013, 12:41 AM
  7. Help Explain this Code
    By khalid79m in forum Excel General
    Replies: 1
    Last Post: 11-27-2008, 06:09 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1