+ Reply to Thread
Results 1 to 5 of 5

Find last non-blank cell in a column then used it as Start of a range

  1. #1
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Find last non-blank cell in a column then used it as Start of a range

    Hi experts,

    I found a code in the internet which allows me to change the data in column L into Proper Case; however, the code looks thru the whole column every time i have to run it.

    Is there a way I can have it look into the last non empty cell in column L then do whatever it does starting from there?

    So if i update the sheet today and the last non empty cell in column L is L1294 (based from a previous update) then the code would read starting from L1295 going down or starting from the latest non empty cell (ex. L1305) and stopping at L1295?

    I figure i can put in a formula in cell to find the last non empty cell then reference the code in that cell but i couldn't incorporate it in the code.

    Please help.
    If I've helped U pls click on d *Add Reputation

  2. #2
    Registered User
    Join Date
    08-01-2012
    Location
    Montreal, Qc, Canada
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Find last non-blank cell in a column then used it as Start of a range

    I dont think there is a way for vba to know where you started your day from.

    looping through the entier column should not take to long if your just putting everything in Proper case.


    try something like this..

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Find last non-blank cell in a column then used it as Start of a range

    Thanks man. I figured i need to speed up the macro as well..thanks for the code it works

  4. #4
    Registered User
    Join Date
    08-01-2012
    Location
    Montreal, Qc, Canada
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Find last non-blank cell in a column then used it as Start of a range

    no problem, glad i could help.

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Find last non-blank cell in a column then used it as Start of a range

    Or without looping.
    Please Login or Register  to view this content.

+ 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. [SOLVED] Formula to find the last cell value in a column range that contains blank cells
    By Bonzopookie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2014, 07:50 PM
  2. [SOLVED] Find first blank cell in first column of known range, select and delete from that point
    By johnstevens in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-09-2014, 09:41 AM
  3. Find & select 1st blank cell in a range of formulated column cells
    By jnbroek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2013, 09:26 AM
  4. Find blank cell, insert formula to find median of above cell range
    By lilyeye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2013, 11:58 AM
  5. Find last non-blank column/row in a range
    By RunninRebel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2012, 01:40 PM
  6. Find first blank cell in column if rightmost cell is non blank
    By Mothman in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-19-2010, 02:22 AM
  7. [SOLVED] Find first blank cell in single column named range
    By tig in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-09-2006, 01:40 PM

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