wiklendt
i recommend chocolate
- Local time
- Today, 14:19
- Joined
- Mar 10, 2008
- Messages
- 1,746
hello everyone,
so i'm working on an excel sheet to collect and collate data on some specimens.
i pretty much have things set up as i want them. i have validation data lists, from which users can pick their common/frequent data and then i also have formulae down the track in each row which interpret that data, collate it and compare data from one platform (phenotypic) to another platform (genotypic). i may want to put data interpretation into a different sheet of the same workbook.
the only thing that is nagging me is: i know i'll eventually build up a list of many specimens, so i know i need the formulae to be 'copied' down the sheet to accommodate new data HOWEVER, if i copy, say, 100 or 1000 rows, then print, it will print ALL those rows with formulae, whether or not i've put data in.
the validation data lists work great - i've applied them to the whole column, and excel only prints to the bottom of the last entered row.
i think i can demonstrate what i mean by showing a screenshot of my sheet in page-break view...
this image (attached) shows how i can merrily add new samples and data and excel will only print to the bottom of that data (and even shows how the formulae interpret the data all the way on the right hand side: the second row i manually copied from the first for my post)
this image (attached) shows how, if i were to prefill the formulae to interpret results for the expected number of samples, excel prints those rows as well, even though i have not entered a sample or data yet (just the formulae).
what i want to do is this, and it probably will require some VBA:
when a new row of data is entered, say, row 8 in column E is no longer empty, then the formulae from:
AL5:BL5
are dutifully copied and pasted to:
AL8:BL8 (or whatever the new row will be).
i didn't really find anything useful in AWF, but i have found these two pages on the web which seem to touch on what i might want to do, i just have no idea how to adjust them to my purposes:
http://www.computing.net/answers/office/excel-programming/7578.html
and this one: which seems to be doing exactly what i want, BUT the code offered is only for one instance - it won't work for continually updating specimen/row numbers:
http://www.xtremevbtalk.com/showthread.php?t=112727
has anyone had to do anything like this before? can anyone point me in the right direction?
edit: i should add that, while i can easily change the "print area" each time, i don't want to have to do that AND this workbook will be sent to collaborating institutes, and i don't want to have to 'train' them in such features - i just want it to work "out-of-the-box"
so i'm working on an excel sheet to collect and collate data on some specimens.
i pretty much have things set up as i want them. i have validation data lists, from which users can pick their common/frequent data and then i also have formulae down the track in each row which interpret that data, collate it and compare data from one platform (phenotypic) to another platform (genotypic). i may want to put data interpretation into a different sheet of the same workbook.
the only thing that is nagging me is: i know i'll eventually build up a list of many specimens, so i know i need the formulae to be 'copied' down the sheet to accommodate new data HOWEVER, if i copy, say, 100 or 1000 rows, then print, it will print ALL those rows with formulae, whether or not i've put data in.
the validation data lists work great - i've applied them to the whole column, and excel only prints to the bottom of the last entered row.
i think i can demonstrate what i mean by showing a screenshot of my sheet in page-break view...
this image (attached) shows how i can merrily add new samples and data and excel will only print to the bottom of that data (and even shows how the formulae interpret the data all the way on the right hand side: the second row i manually copied from the first for my post)
this image (attached) shows how, if i were to prefill the formulae to interpret results for the expected number of samples, excel prints those rows as well, even though i have not entered a sample or data yet (just the formulae).
what i want to do is this, and it probably will require some VBA:
when a new row of data is entered, say, row 8 in column E is no longer empty, then the formulae from:
AL5:BL5
are dutifully copied and pasted to:
AL8:BL8 (or whatever the new row will be).
i didn't really find anything useful in AWF, but i have found these two pages on the web which seem to touch on what i might want to do, i just have no idea how to adjust them to my purposes:
http://www.computing.net/answers/office/excel-programming/7578.html
and this one: which seems to be doing exactly what i want, BUT the code offered is only for one instance - it won't work for continually updating specimen/row numbers:
http://www.xtremevbtalk.com/showthread.php?t=112727
has anyone had to do anything like this before? can anyone point me in the right direction?
edit: i should add that, while i can easily change the "print area" each time, i don't want to have to do that AND this workbook will be sent to collaborating institutes, and i don't want to have to 'train' them in such features - i just want it to work "out-of-the-box"
Attachments
Last edited: