+ Reply to Thread
Results 1 to 3 of 3

Select First Cell in First Blank Column

  1. #1
    Registered User
    Join Date
    03-13-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    59

    Select First Cell in First Blank Column

    I having trouble writing code to perform the following action:

    I want to select the first blank cell in the first blank column. I would just look at the column and instruct it to select a given range, but each month the blank column will change (by moving one to the right).

    So for example

    This Month:
    Columns A-Q all have data in it. So, I would need to select cell "R1"

    Next Month:
    Columns A-R will all have data in it. So, I would then need to select cell "S1"

    Etc.

    Can anyone help me with some code to auto-detect the blank column and then select that column's first cell?

    Thank you for any support.
    Last edited by NSTurk725; 02-11-2010 at 11:24 AM. Reason: Changed Satuts to solved

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208

    Re: Select First Cell in First Blank Column

    Something like this?

    Please Login or Register  to view this content.
    HTH,
    Jason

  3. #3
    Registered User
    Join Date
    03-13-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: Select First Cell in First Blank Column

    That works great! One more question. If I wanted to loop through each cell in that selected blank column and perform a given calculation, how would write that code? I'm having trouble referencing that range.

+ 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