I have a macro which copies out text from one sheet and places it into another. I only want the macro to select text when conditions are met (i.e. there is text to copy), but I wasn't able to do that so I just ended up copying an entire area (which is contigious).
Problem is, there are formulas being copied over (an if/isblank formula). Although when I paste into a new sheet I use Paste Special - values only - it carries over what would have been the result of the formula.
To illustrate, if box A1 istext, then box D1 gives me a date and box F1 adds 14 days to that date. If it's blank it shows nothing. When I paste, it carries 01/01/00 and 15/01/00 over respectively. Thus when I sort my sheet I end up with loads of blanks at the top of my list.
How do I program Visual Basic to identify completed cells and copy only those rows to my new sheet...?!
(Thanks for bearing with me!)
Problem is, there are formulas being copied over (an if/isblank formula). Although when I paste into a new sheet I use Paste Special - values only - it carries over what would have been the result of the formula.
To illustrate, if box A1 istext, then box D1 gives me a date and box F1 adds 14 days to that date. If it's blank it shows nothing. When I paste, it carries 01/01/00 and 15/01/00 over respectively. Thus when I sort my sheet I end up with loads of blanks at the top of my list.
How do I program Visual Basic to identify completed cells and copy only those rows to my new sheet...?!
(Thanks for bearing with me!)