+ Reply to Thread
Results 1 to 5 of 5

Determine a Range despite number of rows

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    82

    Determine a Range despite number of rows

    Hello guys,

    This might have an easy solution but i'm seriously knocking my head on the keyboard for quite a while trying and still couldn't reach a code solution.


    Objective:

    Determine a Range despite the number of rows that a worksheet has.
    For example in the file I have attached I need to select A8:I8 and then untill the last cell with some value, i.e., A8:I79.


    The problem:
    I can have 79 rows, 1250 or even 10000.
    However the columns are fixed.


    I was trying with something like this but so far didn't work out:

    Please Login or Register  to view this content.

    Can you help me out with this?


    Kind Regards,
    FCarv
    Attached Files Attached Files

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Determine a Range despite number of rows

    if you just want to clear the data
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    82

    Re: Determine a Range despite number of rows

    Yes, exactly.
    But only untill column I because then I have a column "J" that I didn't ilustrate in the example and that one I should not clear because it has a formula that I should keep.

    Nevertheless let me try the code

    EDIT: Yes, that way it clears the formula I have in column J, which it's exactly what i'm trying to avoid
    Last edited by Cutter; 08-23-2012 at 01:34 PM. Reason: Removed whole post quote

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Determine a Range despite number of rows

    small change then
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-17-2012
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    82

    Re: Determine a Range despite number of rows

    I really envy you so much right now
    It worked perfectly.
    Thank you so much.

    Rgs,
    FCarv
    Last edited by Cutter; 08-23-2012 at 01:33 PM. Reason: Removed whole post quote

+ 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