Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Denise
 
Posts: n/a
Default Summary Tally of Multiple Sheets

Want to tally, on a unique summary sheet, all particpants in a class offered
at my workplace.

Sheet 1 is Patients

A=Last name
B=First name
C=Address, etc. until I=Marketing Tool

Sheet 2 is Non-Patients - same columar format

I want Sheet 3 to tally everyone to make one attendance list

Can it sort them by last name at the same time?

I searched the database but haven't bumped into what I need yet.

Thanks!!

Denise
  #2   Report Post  
Denise
 
Posts: n/a
Default

Found the following macro in the knowledgebase: I'm the biggest rookie when
it comes to these but I set it up in a module of my spreadsheet.

When I try to run it I get a compile error related to LastRow. Does this
function have to be expanded on for this to run properly?

I'm trying to summarize all rows on two sheets named Patients and
Non-Patients to create a master attendance list. This creates the summary on
a sheet called Master. Any macro Phd's out there that can give me a lesson?

Thanks!!

Sub Test5()
Dim sh As Worksheet
Dim DestSh As Worksheet
Dim shLast As Long
Dim Last As Long

On Error Resume Next
If Len(ThisWorkbook.Worksheets.Item("Master").Name) = 0 Then
On Error GoTo 0
Application.ScreenUpdating = False
Set DestSh = ThisWorkbook.Worksheets.Add
DestSh.Name = "Master"
For Each sh In ThisWorkbook.Worksheets
If sh.Name < DestSh.Name Then
Last = LastRow(DestSh)
shLast = LastRow(sh)

sh.Range(sh.Rows(4), sh.Rows(shLast)).Copy DestSh.Cells(Last
+ 1, "A")

End If
Next
DestSh.Cells(1).Select
Application.ScreenUpdating = True
Else
MsgBox "The sheet Master already exist"
End If
End Sub

"Denise" wrote:

Want to tally, on a unique summary sheet, all particpants in a class offered
at my workplace.

Sheet 1 is Patients

A=Last name
B=First name
C=Address, etc. until I=Marketing Tool

Sheet 2 is Non-Patients - same columar format

I want Sheet 3 to tally everyone to make one attendance list

Can it sort them by last name at the same time?

I searched the database but haven't bumped into what I need yet.

Thanks!!

Denise

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying multiple sheets from one book 2 another and undertake spec Pank Mehta Excel Discussion (Misc queries) 14 March 16th 05 04:41 PM
Summary of data from 20 sheets Allan Skyner Excel Discussion (Misc queries) 7 February 1st 05 04:13 PM
Multiple sheets selected twa14 Excel Discussion (Misc queries) 2 December 21st 04 11:15 AM
Linking sheets to a summary sheet in workbook gambinijr Excel Discussion (Misc queries) 4 December 16th 04 08:13 PM
linking multiple sheets to a summary sheet greg g Excel Discussion (Misc queries) 1 December 16th 04 07:43 AM


All times are GMT +1. The time now is 09:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"