Results 1 to 3 of 3

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

Threaded View

  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)
    'copying from this sheet
     Sheets("Sheet 1").Select
        Range("K2").Select
        Range(Selection, Selection.End(xlDown)).Select
         Application.CutCopyMode = False
        Selection.Copy
    ' pasting as a value here
        Sheets("archive").Select
        Range("E1").Select
      Range(Selection, Selection.End(xlDown)).Select
        ActiveCell.Offset(1, 0).Range("A1").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
    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.

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