Hi Don,
Thanks for the reply, however I was hoping to be able to set it as a
macro. I'm setting this up for my son, he knows where the on off switch
is and how to run excel, but the knowledge stops there.
I think what I'm after is a macro which scans the equipment worksheet,
when it finds something that matches both date and chargeable copies a
set of cells into another worksheet. Well actually inserts a line then
insert the required cells into that set of cells.
It's obviously going to involve some IF's etc, but I don't know how to
reference the different cells from within the same IF. If you know what
I mean. I'm OK with basic VB stuff, but how do you reference the
different cells and sheets. Is where I'm getting stuck.
For example, how do I know if I've reached the last entry in the
equipment sheet? While I'm parsing that is.....
Do while (somethow not eof??)
IF cell(Bx)= (existing date checking for) AND cell(Fx) = "Y"
then
(Do the transfer somehow)
Invoice.worksheet.cell(Ry)= equipment.worksheet.cell(Bx)
endif
Loop
In the above, how do I reference cell(Bx) the column part?
etc??
Help much appreciated please..... Any tutorial refs would also be useful
please.
Kevin
In message <edyDb#(E-Mail Removed)>, Don Guillett
<(E-Mail Removed)> writes
>One way is to use (record a macro while doing)
>data>filter>autofilter>set your criteria>copy
>
--
"I live in my own little world.
But it's OK. They know me here."
= = = =
Kevin J Prince
http://www.1and1.co.uk/?k_id=5257507