macro ignore formulas

  • Thread starter Thread starter puiuluipui
  • Start date Start date
P

puiuluipui

Hi, is there any way this macro ignore formulas?
In column "I" i have this formula that retrieve numbers.
(=IF(G2<>"",H2*G2,"")). If there are no numbers to retrieve, then the formula
doesn't display anything. But the macro keep seeing the formula. The formula
goes till row 50, and because of that, the macro is selecting the cell in row
50.
I need this macro to see only the results of formula.
Macro:
Columns("I:I").Select
Range("I1").End(xlDown).Select
ActiveCell.Offset(1, 0).Select
Can this be done?
Thanks!
 
If column G is what's important, why not have the macro look there?

Range("G1").End(xlDown).Select
'Offset 2 columns now to make up difference
ActiveCell.Offset(1, 2).Select
 
try like this

If Not ActiveCell.HasFormula Then
code goes here ........
 
This was really good. I hope you can help me with the other tread.
Thanks!
 

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

Similar Threads

How do I add a formula to a macro? 4
Add formula if 2
Help Writing a SUM Formula 5
How to copy only to cells where there is data 4
SUMIF 7
Help on Macro to hide empty rows 4
Excel A CountIF question... I think 2
Aging Formula 5

Back
Top