PC Review


Reply
Thread Tools Rate Thread

Append Below

 
 
donwb
Guest
Posts: n/a
 
      16th Nov 2009
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


 
Reply With Quote
 
 
 
 
donwb
Guest
Posts: n/a
 
      20th Nov 2009
Thanks Joel, that works fine
donwb
"joel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Append query to append lots of record with range input domibud Microsoft Access Queries 7 9th May 2008 02:26 AM
INSERT SQL to append recs frm another Table, NULL DATE append 30/1 accesshar Microsoft Access VBA Modules 2 14th Jan 2008 02:00 PM
What is the easiest way to open a textfile for append or create it for text append? Wolfgang Meister Microsoft C# .NET 3 23rd May 2007 04:15 PM
Append Query in VBA - to append VBA variable values to Access tabl =?Utf-8?B?QWdlbnQgRGFnbmFtaXQ=?= Microsoft Access VBA Modules 4 1st Nov 2006 04:25 PM
Paste Append - I want to make a table of records that don't append =?Utf-8?B?Q0o=?= Microsoft Access Queries 1 5th Jul 2005 06:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 PM.