Results 1 to 26 of 26

VBA explanation

Threaded View

  1. #14
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: VBA explanation

    Sub test()
    
    Dim l As Long
    Dim lRow As Long
    
    lRow = Cells(Rows.Count, "A").End(xlUp).Row
    
    For l = 1 To lRow
        If Range("A" & l).Value = "" Then
            Range("A" & l).PasteSpecial
            Exit Sub
        End If
    Next l
    End Sub
    Last edited by Solus Rankin; 08-09-2013 at 10:26 AM. Reason: edit code

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Explanation VBA FOR...NEXT loop
    By burnettec in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 12-31-2012, 12:57 AM
  2. Formula explanation
    By arke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-28-2012, 06:25 AM
  3. VBA explanation
    By Darel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-01-2011, 02:00 AM
  4. Code explanation
    By bajdr47 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2011, 12:30 PM
  5. Explanation
    By ro55co in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-29-2008, 08:15 AM

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