Results 1 to 10 of 19

Thread: Delete One Row From A 2D Variant Array

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    14
    If you want to remove row 12 from array [A1:K20]

    Code:
    Sub M_snb()
      sp = F_snb([a1:K20], 12)
      Cells(1, 16).Resize(UBound(sp), UBound(sp, 2)) = sp
    End Sub
    
    Function F_snb(sn, y)
      sn.Name = "snb_002"
      F_snb = Application.Index(sn, Application.Transpose(Split(Trim(Replace(" " & Join([transpose(row(snb_002))]) & " ", " " & y & " ", " ")))), [column(snb_002)])
    End Function
    For more see: http://www.snb-vba.eu/VBA_Arrays_en.html#L_6.10
    Last edited by snb; 04-04-2016 at 01:49 PM.

Similar Threads

  1. Replies: 6
    Last Post: 03-26-2014, 03:04 PM
  2. Replies: 1
    Last Post: 02-25-2014, 10:55 PM
  3. Delete Entire Row For All Empty Cells In Column
    By johnreid7477 in forum Excel Help
    Replies: 4
    Last Post: 06-15-2013, 05:50 AM
  4. Delte a specific column and does not delete the top row
    By jffryjsphbyn in forum Excel Help
    Replies: 1
    Last Post: 06-13-2013, 02:00 PM
  5. Replies: 4
    Last Post: 03-22-2013, 01:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •