A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conitional copying of a serie of rows from one spreadsheet to another



 
 
Thread Tools Display Modes
  #21  
Old July 5th, 2006, 03:48 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Conitional copying of a serie of rows from one spreadsheet to

Max

I (hopefully finally but I can't help fiddling with things) want to
create a page similar to the report for each class that could pick up
the student name from the 'Control' Page and only print the entries for
that student for the date ranges.

I anticipated a validation box on the control page that picks up the
student lists for that clas and then entering the start and end date
for this report.

I expected it would be easy to copy and print the previous report but I
get the student i want but also ohers as well.

I tried to upload thisversion to savefile.com but thre is an error and
I can't do it.

Many thanks

David


david wrote:

Thanks Max this seems to be working OK

One final question and please ignore this if I am taking up too much of
your time.

I have tweaked the file to add summary pages for each of the 4 classes
together with the printout page which pulls its criteria from from the
'Control' sheet.

What I want to be able to do is print this 'Printout' page via a macro.
So I would select the form from the dropdown box on the control page
and then press a macro button. To do this I presume I need to be able
to detect which is the last line that there is any data in so the print
range can be set- how can I do this?


the file can be downloaded from

http://savefile.com/projects/857497

Thanks

David


Max wrote:
"david" wrote:
When I click on the 'New Entry' macro on the 'Y9_Incidents' sheet it
counts the cell reference number down in the 'O' column of the
'Printout' sheet.

I tried making it an absolute rather than a relative reference but I
can't get that to work.


In sheet: Printout,

Try this revised criteria formula* in O6, filled down to O100 (say):
=IF(OR(Control!$C$9="",Control!$C$10="",Control!$C $10=""),"",
IF(INDEX(INDIRECT("'Y9Incidents'!B14:B1000"),ROW(A 1))="","",
IF(AND(INDEX(INDIRECT("'Y9Incidents'!B14:B1000"),R OW(A1))=Control!$C$9,
INDEX(INDIRECT("'Y9Incidents'!D141000"),ROW(A1)) =Control!$C$10,
INDEX(INDIRECT("'Y9Incidents'!D141000"),ROW(A1)) =Control!$C$11),ROW(),"")))

*to cater for new row insertions by the macro in Y9Incidents

(No change to the other formulas in cols A to K)

An implemented sample is available at:
http://www.savefile.com/files/5487340
incident_Book_for_playY9_1.xls

Test it out (works ok here, under light testing)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #22  
Old July 6th, 2006, 06:02 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Conitional copying of a serie of rows from one spreadsheet to

"david" wrote:
Thanks Max this seems to be working OK


Glad to hear that ..

One final question and
please ignore this if I am taking up too much of your time.


well, it's definitely not in my nature to ignore, and I would post a closure
in threads if I can't help any further ..

I have tweaked the file to add summary pages for each of the 4 classes
together with the printout page which pulls its criteria from from the
'Control' sheet.

What I want to be able to do is print this 'Printout' page via a macro.
So I would select the form from the dropdown box on the control page
and then press a macro button. To do this I presume I need to be able
to detect which is the last line that there is any data in so the print
range can be set- how can I do this?


the file can be downloaded from
http://savefile.com/projects/857497


Apologies, I'm not able to help you on the above. You could hang around here
awhile for possible responses from others versed in vba. But since this
thread is quite deep, I would suggest you post afresh your new query in
microsoft.excel.programming for better exposure.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #23  
Old July 6th, 2006, 06:59 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Conitional copying of a serie of rows from one spreadsheet to

"david" wrote:
I (hopefully finally but I can't help fiddling with things) want to
create a page similar to the report for each class that could pick up
the student name from the 'Control' Page and only print the entries for
that student for the date ranges.

I anticipated a validation box on the control page that picks up the
student lists for that clas and then entering the start and end date
for this report.

I expected it would be easy to copy and print the previous report but I
get the student i want but also others as well.


As per earlier response today, I'm not able to help you on the above.
You could hang around here awhile for possible responses from others versed
in vba. But since this thread is quite deep, I would suggest you post afresh
your new query in microsoft.excel.programming for better exposure.

I tried to upload this version to savefile.com but there is an error and
I can't do it.


The free filehost savefile.com may be down at times (just like any site). If
you review one of my earlier responses, I supplied a list of 3 filehosts. We
could always try either of the other 2 if 1 is down.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #24  
Old July 6th, 2006, 07:34 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Conitional copying of a serie of rows from one spreadsheet to

Max

Many thanks for everything you have done - you have given me an
excellent start - I will take your advice & re-post.

David


Max wrote:
"david" wrote:
I (hopefully finally but I can't help fiddling with things) want to
create a page similar to the report for each class that could pick up
the student name from the 'Control' Page and only print the entries for
that student for the date ranges.

I anticipated a validation box on the control page that picks up the
student lists for that clas and then entering the start and end date
for this report.

I expected it would be easy to copy and print the previous report but I
get the student i want but also others as well.


As per earlier response today, I'm not able to help you on the above.
You could hang around here awhile for possible responses from others versed
in vba. But since this thread is quite deep, I would suggest you post afresh
your new query in microsoft.excel.programming for better exposure.

I tried to upload this version to savefile.com but there is an error and
I can't do it.


The free filehost savefile.com may be down at times (just like any site). If
you review one of my earlier responses, I supplied a list of 3 filehosts. We
could always try either of the other 2 if 1 is down.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #25  
Old July 6th, 2006, 08:40 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Conitional copying of a serie of rows from one spreadsheet to

"david" wrote:
Max
Many thanks for everything you have done - you have given me an
excellent start - I will take your advice & re-post.


My pleasure' David. Thanks for feedback.
Good luck and all the best !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I delete both duplicate rows from a spreadsheet? natalia General Discussion 3 April 29th, 2006 11:40 PM
resetting last cell jagdish.eashwar General Discussion 11 March 31st, 2006 02:06 AM
I’m trying to remove blank rows in an Excel spreadsheet Printout riponalong Worksheet Functions 2 January 5th, 2006 05:58 AM
Copying table rows traveler Using Forms 1 December 23rd, 2005 06:38 PM
excel spreadsheet is 4.77mb but only has 126 rows, why? Bazar25 General Discussion 1 November 15th, 2005 07:01 PM


All times are GMT +1. The time now is 03:38 AM.


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