+ Reply to Thread
Results 1 to 6 of 6

xldown

  1. #1
    Registered User
    Join Date
    06-23-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2010/2007
    Posts
    34

    xldown

    Hi, I have values from B1 to B275 but the list will be updated and so the last row will be changed frequently. I intend to select the range such that only the cells in column B with values are contained in the range. I know that the syntax for this is xldown but how do I implement it?

    My original code
    Please Login or Register  to view this content.
    . Now this ISIN is the name for the range, to be specific, Column B. But I only want to restrict the range to the cells in column B with values. How do i do this using xldown? Thanks!
    Last edited by secondrate; 06-27-2010 at 09:33 PM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: xldown

    Hi secondrate
    Something like....
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: xldown

    Pike has already answered but a handy alternative can be to make the named range dynamic.

    The below in the named range "Refers to:" box would work

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: xldown

    Please Login or Register  to view this content.
    I like:
    Please Login or Register  to view this content.
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: xldown

    Quicker than a loop, try Specialcells
    Please Login or Register  to view this content.
    You usually don't need to Select though
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    06-23-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2010/2007
    Posts
    34

    Re: xldown

    thanks guys!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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