
Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
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
>One way is to use (record a macro while doing)
>data>filter>autofilter>set your criteria>copy

Signature
"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
Don Guillett - 07 Sep 2007 17:32 GMT
Feel free to send a workbook along with copies of these posts and
before/afer samples to the address below.

Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
> Hi Don,
>
[quoted text clipped - 34 lines]
>>One way is to use (record a macro while doing)
>>data>filter>autofilter>set your criteria>copy
Kevin J Prince - 08 Sep 2007 07:01 GMT
Thanks Don,
I've done that
>Feel free to send a workbook along with copies of these posts and
>before/afer samples to the address below.

Signature
"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