PC Review


Reply
Thread Tools Rate Thread

Copy information to the last cell of other sheet

 
 
=?Utf-8?B?RWR1YXJkbw==?=
Guest
Posts: n/a
 
      16th Dec 2006
I am trying to copy information in the first empty cell of other sheet called
Data. I've tried the macro as follow copied from Ron Debruin but I get a
compiling error"Sub or Function not defined". I'm new on this, can somebody
help me, thanks, Excel version 2003

Dim sourceRange As Range
Dim destrange As Range
Dim Lr As Long
Lr = LastRow(Sheets("Data")) + 1
Set sourceRange = Sheets("Control").Cells( _
ActiveCell.Row, 1).Range("A6:l26")
Set destrange = Sheets("Data").Range("A" & Lr)
sourceRange.Copy destrange
End Sub
-
Eduardo from TO
 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      16th Dec 2006
On Sat, 16 Dec 2006 07:52:00 -0800, Eduardo wrote:

> I am trying to copy information in the first empty cell of other sheet called
> Data. I've tried the macro as follow copied from Ron Debruin but I get a
> compiling error"Sub or Function not defined". I'm new on this, can somebody
> help me, thanks, Excel version 2003
>
> Dim sourceRange As Range
> Dim destrange As Range
> Dim Lr As Long
> Lr = LastRow(Sheets("Data")) + 1
> Set sourceRange = Sheets("Control").Cells( _
> ActiveCell.Row, 1).Range("A6:l26")
> Set destrange = Sheets("Data").Range("A" & Lr)
> sourceRange.Copy destrange
> End Sub
> -
> Eduardo from TO


You have posted this message to the wrong newsgroup.
The access in this groups name refers to Microsoft Access, a database
program.
Please repost to the correct newsgroup for the Excel program you are
using. I would suggest you include your Windows and Office version
number in the message.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
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
copy rows from one Data sheet to another sheet based on cell conte John McKeon Microsoft Excel Misc 2 15th May 2010 06:49 AM
Formula to copy related information from sheet 1 to sheet 2 dave Microsoft Excel Worksheet Functions 0 5th Dec 2009 12:12 AM
Auto copy cell data from source sheet to another wrkbook sheet IVLUTA Microsoft Excel Programming 2 2nd Jun 2009 05:07 PM
Help: auto-copy entire rows from 1 sheet (based on cell criteria) to another sheet. bertbarndoor Microsoft Excel Programming 4 5th Oct 2007 04:00 PM
How to create a Macro to Copy Information in one sheet to another sheet. poppy Microsoft Excel Programming 3 28th Jul 2004 07:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:22 AM.