Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() sorry forgot to include this part paste this at the top of your code so this should be above the part that starts off with sub test this functions works out the last row of a specific sheet Function lastRowpub(colnum As Long, Optional sh As Worksheet) As Long ' Count Rows in table If sh Is Nothing Then Set sh = ActiveSheet lastRowpub = sh.Cells(sh.Rows.Count, colnum).End(xlUp).Row End Function -- funkymonkUK ------------------------------------------------------------------------ funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135 View this thread: http://www.excelforum.com/showthread...hreadid=555982 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Please help - Find & copy Macro | Excel Worksheet Functions | |||
Find and Copy down macro | Excel Discussion (Misc queries) | |||
FIND-COPY DIFFERENT WORDS WITH MACRO | Excel Discussion (Misc queries) | |||
Find and copy in macro | Excel Programming | |||
Help with find then copy macro | Excel Programming |