Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I thought Excel 2003 had a function useable in VBA called "AppendBelow"
which allowed the addition of a new bottom line of data to an existing data range. but cant find it. If it exists what is the correct syntax based on the outline below. MyLine is the data to be appended My Range is the Named Range to append to Code??? AppendBelow(MyRange,MyLine) donwb |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() You probably has a macro in your personnel.xls file that got lost. This code will work Sub AppendBelow(MyRange As Range, MyLine As String) MyColumn = MyRange.Column Set LastRow = Sheets(MyRange.Parent.Name).Cells(Rows.Count, MyColumn).End(xlUp) LastRow.Offset(1, 0) = MyLine End Sub -- joel ------------------------------------------------------------------------ joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=154400 Microsoft Office Help |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Joel, that works fine
donwb "joel" wrote in message ... You probably has a macro in your personnel.xls file that got lost. This code will work Sub AppendBelow(MyRange As Range, MyLine As String) MyColumn = MyRange.Column Set LastRow = Sheets(MyRange.Parent.Name).Cells(Rows.Count, MyColumn).End(xlUp) LastRow.Offset(1, 0) = MyLine End Sub -- joel ------------------------------------------------------------------------ joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=154400 Microsoft Office Help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you append one row to another? | Excel Worksheet Functions | |||
What can I append | Excel Programming | |||
how to know which row to append for the last row | Excel Programming | |||
Qn: How to Append??? | Excel Programming | |||
append row | Excel Programming |