the simplest solution is to record a macro and then say a variable holds the
value that you enter in the wb record, and use that variable in the recorded
macro instead of a static value.
like:,
dim hold as integer
hold = workbooks(reports).worksheets(sheet1?).range(A1).value
and now, use hold in the recorded macro..
"Decreenisi" wrote:
> Following on from yesterday, I still haven't quite got the solution.
> Because I may have not explained myself, sorry.
>
> A B C D E F
> 1 2 Y N 6 6 8
> 2 2 N N 8 9 9
> 3 3 Y Y 6 7 3
> 4 3 N T 7 5 2
> 5 3 Y Y 5 7 6
>
> In the above WB called rejects I have the following information. A1:A5
> are week numbers. In WB called reports, I want to put a week Number in
> A1 i.e 3. Then open WB rejects and select all data A3:F5, representing
> all data for week 3. Then to copy it and paste is in WB reports from
> cell A2. Then close WB rejects. Just to complicate matters, I would
> like to paste the data using (Paste Special, values option.
>
>
|