Help in Excel 2002

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello and thank you for your time...Here is my scenario. I have created an
 
One method would be to use a worksheet change function. Then when the cell
is changed copy the data to the fisrt empty row on a summary worksheet.

to add code, right click tab at bottom of worksheet( normally sheet1).
Select view code. Paste code below on this sheet. Worksheet change
functions are place in VBA sheets pages (not module) and must be put on each
sheet you want the code to run on.


Sub worksheet_change(ByVal Target As Range)

For Each cell In Target
If (cell.Row = 5) And (cell.Column = 6) Then
EmptyRow = Sheets("Summary"). _
Cells(Rows.Count, "A").End(xlUp).Row
If (EmptyRow = 1) And _
IsEmpty(Sheets("Summary").Cells(1, "A")) Then
EmptyRow = 1
Else
EmptyRow = EmptyRow + 1
End If

cell.EntireRow.Copy Destination:= _
Sheets("Summary").Rows(EmptyRow & ":" & EmptyRow)
Exit For
End If
Next cell

End Sub
 
Hi Joel,
Would you mind if I sent you my spreadsheet to show you what I am trying to
do?


Thanks
 
I've given my e-mail address to lots of peoople, one more can't hurt.

(e-mail address removed)
 
Thanks Joel, I just sent my example spreadsheet

Joel said:
I've given my e-mail address to lots of peoople, one more can't hurt.

(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top