+ Reply to Thread
Results 1 to 3 of 3

select last blank cell instead of last empty cell in a column

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    select last blank cell instead of last empty cell in a column

    Hello everyone,

    I am new to VBA but I have been trying to get a macro to copy and paste values updated daily below existing avlues in an archive page.

    My problem is that the cells in the copied column (about 100 rows worth) contain formulas which spit out a value or a blank if there were less than 100 orders (varies everyday), selecting non empty cells still selects these blank cells with formulas and copies them over so that I end up with huge spaces in my archives
    Heres the code i've been using so far
    (I've learned from looking at recorded macros so I apologise for the poor quality of the coding)
    Please Login or Register  to view this content.
    What can I do to either copy only cells where the formula spits out a non-blank or paste after last non-blank cell (either one)?
    thank you!!!!
    Last edited by alexcrofut; 03-11-2014 at 01:36 PM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: select last blank cell instead of last empty cell in a column

    If blank returned by function is "" not a space (" ") etc., try something like this:
    Please Login or Register  to view this content.
    And please edit your post and use code tags - see our rules: http://www.excelforum.com/forum-rule...rum-rules.html
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: select last blank cell instead of last empty cell in a column

    Thank you! That worked perfectly!

+ 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: 2
    Last Post: 03-17-2012, 08:42 PM
  2. Select first empty cell and Fill down against next column in VBA
    By GuyHudson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-22-2011, 11:46 AM
  3. Select First Cell in First Blank Column
    By NSTurk725 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2010, 05:12 PM
  4. Find and Select the Next Empty Cell in Column A
    By billykiller05 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2009, 01:01 PM
  5. I want to select the first blank cell in column A
    By Greegan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-13-2005, 09:06 AM

Tags for this Thread

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