+ Reply to Thread
Results 1 to 4 of 4

Auto Select First Row To Last Row With Data

Hybrid View

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Auto Select First Row To Last Row With Data

    hello
    i have a range c10:c300, i want to select the range where i have data.
    e.g
    i have data in c10:c50, then select the range c10:c50

    thanx

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Auto Select First Row To Last Row With Data

    Maybe:

    Range("C10:C300").SpecialCells(xlCellTypeConstants).Select

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Auto Select First Row To Last Row With Data

    Hello
    stnkynts

    thanx its working, but if there is no data in range c10:c300 then there is coming up a bebug
    how to solve

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Auto Select First Row To Last Row With Data

    Maybe this

    On Error Resume Next
    Range("C10:C300").SpecialCells(xlCellTypeConstants).Select

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-15-2012, 06:36 AM
  2. Auto-Select Data Source for Chart
    By Sirrip in forum Excel General
    Replies: 5
    Last Post: 09-02-2011, 09:48 AM
  3. Auto Select New Data
    By fdebelo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2011, 01:39 PM
  4. Select Data from a cell, move down a number, select data
    By Kage_ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-12-2007, 02:12 PM
  5. [SOLVED] Auto Select from Data Validation but allow override
    By JG Scott in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2005, 11:30 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