Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default help with a worksheet needed

Im trying to fix a spreadsheet for a volunteer organization that has no
budget for software. I need some help. The first column is for the date the
activity took place. The second column is the activity that happened. The
next 15 columns are for the members, one column for each member. We put in
the date and activity as they happen then move across the row and put an X in
the column under the name of each member that attends the activity. I then
have a second sheet with a form that will give the members name and list the
activities that the member attended. I need that page to print 15 times, one
for each member, showing the activities and date that each member attended.
I dont know how to write the print program so it will go to the first sheet
pick up the members name and print only the activities attended by that
person. Is there a program out there that I could adapt for this or is there
a formula that I could use to make this work? Any and all suggestions would
be appreciated.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default help with a worksheet needed

With your layout you could use DataAutofilter on one sheet only.

Select the name Gord at top of column C And DataFilterAutofilter

Hit the arrow and Filter for "X".

You will see in column C just the dates and activities for Gord that had an 'X".

Hide the other name columns and print just Gord's dates and activities.

14 more times and you have 15


Gord Dibben MS Excel MVP




On Sat, 16 Feb 2008 16:25:01 -0800, snjrusse
wrote:

I’m trying to fix a spreadsheet for a volunteer organization that has no
budget for software. I need some help. The first column is for the date the
activity took place. The second column is the activity that happened. The
next 15 columns are for the members, one column for each member. We put in
the date and activity as they happen then move across the row and put an X in
the column under the name of each member that attends the activity. I then
have a second sheet with a form that will give the members name and list the
activities that the member attended. I need that page to print 15 times, one
for each member, showing the activities and date that each member attended.
I don’t know how to write the print program so it will go to the first sheet
pick up the members name and print only the activities attended by that
person. Is there a program out there that I could adapt for this or is there
a formula that I could use to make this work? Any and all suggestions would
be appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default help with a worksheet needed

try
Sub printeach()
Application.ScreenUpdating = False
lr = Cells(Rows.Count, "a").End(xlUp).Row
For i = 4 To Cells(1, Columns.Count).End(xlToLeft).Column
'MsgBox Cells(1, i).Value
If Application.CountIf(Columns(i), "x") 0 Then
Sheets(3).Range("a11:c100").ClearContents
Range("A1:P" & lr).AutoFilter Field:=i, Criteria1:="x"
Range("A2:c" & lr).SpecialCells(xlCellTypeVisible).Copy _
Sheets(3).Range("a11")
Sheets(3).Range("b5") = Cells(1, i)
Sheets(3).PrintPreview 'change to .printOUT after testing
Range("A1:P1").AutoFilter
End If
Next i
Application.ScreenUpdating = True
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message
...
Send your workbook along with a snippet from this post and clear
instructions along with a proper result example.
Send to the address below
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"snjrusse" wrote in message
...
Im trying to fix a spreadsheet for a volunteer organization that has no
budget for software. I need some help. The first column is for the date
the
activity took place. The second column is the activity that happened.
The
next 15 columns are for the members, one column for each member. We put
in
the date and activity as they happen then move across the row and put an
X in
the column under the name of each member that attends the activity. I
then
have a second sheet with a form that will give the members name and list
the
activities that the member attended. I need that page to print 15 times,
one
for each member, showing the activities and date that each member
attended.
I dont know how to write the print program so it will go to the first
sheet
pick up the members name and print only the activities attended by that
person. Is there a program out there that I could adapt for this or is
there
a formula that I could use to make this work? Any and all suggestions
would
be appreciated.



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
Worksheet function needed Office_Novice Excel Worksheet Functions 5 June 12th 08 09:18 PM
Help needed with copying from one worksheet to another Ricco Excel Programming 2 April 27th 07 08:19 AM
Help needed with copying from one worksheet to another [email protected] Excel Programming 1 April 26th 07 11:58 AM
help needed in worksheet function Aarif Excel Worksheet Functions 1 March 17th 06 12:17 PM
Needed: worksheet export help mainemike Excel Discussion (Misc queries) 1 February 24th 06 02:59 AM


All times are GMT +1. The time now is 10:59 PM.

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

About Us

"It's about Microsoft Excel"