PC Review


Reply
Thread Tools Rate Thread

Copy from Sheet 1 to Last available cell in specified column

 
 
=?Utf-8?B?Q2FybGVl?=
Guest
Posts: n/a
 
      7th Jul 2007
Hi there,

In sheet one, i have simulated a userform to enable users to enter data (at
their request). I am trying to find the most efficient method to take the
data entered in specific rows of Sheet 1, and insert into the last available
row of sheet 2.

Any ideas on how i can accomplish this?
--
Carlee
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      7th Jul 2007
You can find the last row in sheet2 with

with worksheets("Sheet2")
set rng = .Cells(rows.count,1).End(xlup)
End with

this assumes there will be data in the first column.

After that it should be copy and insert - something you can easily get with
the macro recorder if you don't already know how.

--
Regards,
Tom Ogilvy


"Carlee" wrote:

> Hi there,
>
> In sheet one, i have simulated a userform to enable users to enter data (at
> their request). I am trying to find the most efficient method to take the
> data entered in specific rows of Sheet 1, and insert into the last available
> row of sheet 2.
>
> Any ideas on how i can accomplish this?
> --
> Carlee

 
Reply With Quote
 
=?Utf-8?B?V2lnaQ==?=
Guest
Posts: n/a
 
      7th Jul 2007
Hi

It would be something along the lines of

Code:
Sheets("Sheet2").Cells(Rows.Count, 1).End(xlUp).Value =
ActiveCell.Value
Wigi
 
Reply With Quote
 
=?Utf-8?B?V2lnaQ==?=
Guest
Posts: n/a
 
      7th Jul 2007
Sorry, contrary to some boards, the code tags can't be used here it seems.
I'll remember for the future ;-)

Wigi

"Wigi" wrote:

> Hi
>
> It would be something along the lines of
>
>
Code:
Sheets("Sheet2").Cells(Rows.Count, 1).End(xlUp).Value =
> ActiveCell.Value
>
> Wigi

 
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 last cell with data in column E on one sheet to cell on anoth Seahawk Microsoft Excel Worksheet Functions 7 7th May 2009 02:52 AM
VAB to copy cell values into new Sheet, Overwrite if needed and based off of Cell Value in a column gumby Microsoft Excel Programming 4 14th Jul 2007 01:55 AM
how to make one column copy from one sheet to anoth column w/o zer =?Utf-8?B?YXJlZXpt?= Microsoft Excel Misc 3 6th Jun 2006 10:45 PM
based on Cell/Column content ,cut one sheet's values and paste it in other sheet? mindpeace Microsoft Excel Programming 0 25th May 2006 01:33 PM
based on Cell/Column content ,cut one sheet's values and paste it in other sheet? mindpeace Microsoft Excel Programming 3 24th May 2006 03:33 PM


Features
 

Advertising
 

Newsgroups
 


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