PC Review


Reply
Thread Tools Rate Thread

Copy to different worksheets on next row

 
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      11th Oct 2006
Hello,

I’m kind of new to VBA. What little code I do know is just enough to be
dangerous when I try doing something I don’t understand, so any help you
could provide would be greatly appreciated.

The short description of what I am trying to do is with Excel 2003
automatically copy data from one worksheet to the next empty row on one of
the other worksheets depending on the type of information. Here’s the
detailed description:
I have 4 different worksheets in the same workbook: Screening, Guided,
Toolkit, and Control. The Screening worksheet is where all of the data is
initially entered. I am trying to get the information in Screening cells
A22 to copy to cells A22 of the corresponding worksheets depending on if
the data typed into Screening cell K2 is “guided”, “toolkit”, or “control”.
This would be done for multiple rows of information entered into the
Screening worksheet so I am also trying to get the data to simply fill into
the next empty row on the correct worksheet.

Thanks in advance.

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      11th Oct 2006
With Worksheets("Screening")
iLastRow = Worksheets(.Range("K2").Value).Cells(Rows.Count,
"A").End(xlUp).Row
.Range("A22").Copy Worksheets(.Range("K2").Value).Cells(iLastRow +
1, "A")
End With

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Bob" <(E-Mail Removed)> wrote in message
news:E9F2A6E7-C710-4F28-8DDD-(E-Mail Removed)...
> Hello,
>
> I'm kind of new to VBA. What little code I do know is just enough to be
> dangerous when I try doing something I don't understand, so any help you
> could provide would be greatly appreciated.
>
> The short description of what I am trying to do is with Excel 2003
> automatically copy data from one worksheet to the next empty row on one of
> the other worksheets depending on the type of information. Here's the
> detailed description:
> I have 4 different worksheets in the same workbook: Screening, Guided,
> Toolkit, and Control. The Screening worksheet is where all of the data is
> initially entered. I am trying to get the information in Screening cells
> A22 to copy to cells A22 of the corresponding worksheets depending on

if
> the data typed into Screening cell K2 is "guided", "toolkit", or "control"

..
> This would be done for multiple rows of information entered into the
> Screening worksheet so I am also trying to get the data to simply fill

into
> the next empty row on the correct worksheet.
>
> Thanks in advance.
>



 
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 worksheets =?Utf-8?B?ZXhjZWwtdHI=?= Microsoft Excel Programming 6 2nd Apr 2007 04:14 PM
how do i copy a cell in worksheets 10 to the other 9 worksheets =?Utf-8?B?YmV0ZQ==?= Microsoft Excel New Users 3 15th Mar 2007 10:41 AM
Copy data from multiple worksheets to worksheets in a number of other spreadsheets SteveH Microsoft Excel Discussion 5 6th Nov 2006 06:59 PM
Copy to different worksheets on next row =?Utf-8?B?Qm9i?= Microsoft Excel Programming 0 11th Oct 2006 08:14 AM
copy between worksheets does not copy formulae just values =?Utf-8?B?Q2hyaXNAMTAwMCBPYWtz?= Microsoft Excel Misc 0 19th Mar 2006 11:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:16 AM.