Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am copying and pasting i need code to paste frm the next blank cell in
column N. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() You could use Code: -------------------- Dim lastRow As Long lastRow = ActiveSheet.Cells(Rows.Count, 14).End(xlUp).Row + 1 -------------------- Or create a function Code: -------------------- Option Explicit Function lastRow(Col As Long) As Long lastRow = Cells(Rows.Count, Col).End(xlUp).Row + 1 End Function Sub test() MsgBox lastRow(14) End Sub -------------------- -- royUK Hope that helps, RoyUK For tips & examples visit my 'web site ' (http://www.excel-it.com) ------------------------------------------------------------------------ royUK's Profile: http://www.thecodecage.com/forumz/member.php?userid=15 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=33672 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Average Formula to display blank cell if named range is blank | Excel Worksheet Functions | |||
Start Cell B1 then find first blank cell, insert subtotal, next non blank, then next blank, sutotal cells in between......... | Excel Programming | |||
Need macro to check if cell is not blank & previous cell is blank, copy information from row above & paste | Excel Programming | |||
Copy to first Blank cell in Colum C Non blank cells still exist be | Excel Programming | |||
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. | Excel Discussion (Misc queries) |