problem with date in the VBA macro

Joined
May 9, 2015
Messages
2
Reaction score
0
I have a macro (part of a larger project) to do some actions based on dates in col A and S .
see attachment is empty test 1.xls
the objectives -

1) scan thru rows and check if values in col A and S are blank
2) if blank (or 1/1/1990) then copy prev row to current row in place of blanks.
3) if not "do nothing".
4) To avoid copying qty field which in real case, will have value and prevent overwriting qty field I split ranges to R1 R2 (buy side) R1 and R2 (sell side) section of data, excluding qty field.
5) The message boxes are added as test.
6) I use named ranges to define ranges. please check these
7) values in col AW1 and AX1 show the total no of rows to be processed in Buy and sell section resp.

However though cols a and s are in date format it keeps showing the values 00:00:00 when i execute macro in break mode and hence the excel does not work the way I designed. Please review and make suggestions
 

Attachments

  • is empty test 1.zip
    465.8 KB · Views: 158
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top