5L2F
New Member
- Joined
- Oct 15, 2005
- Messages
- 11
I have 2 adjacent cells. One is for entering a number. The adjacent cell prints XXX if the adjacent number is less than 10 and YYY if the number is more than 10. Here is the code:
If I enter a number manually it works fine. But I don't want to enter it manually. I have created a macro that pops up a dialog box and I enter the number into the box. It then pastes the information on to the worksheet at M18.
My problem is that when it pastes from the dialog box, the adjacent cell does not recognise it. It does not do 'its thing.' The formula refuses to calculate. Can someone tell me what to do please?
Chris
Code:
=IF(M18>9,"XXX","YYY")
If I enter a number manually it works fine. But I don't want to enter it manually. I have created a macro that pops up a dialog box and I enter the number into the box. It then pastes the information on to the worksheet at M18.
My problem is that when it pastes from the dialog box, the adjacent cell does not recognise it. It does not do 'its thing.' The formula refuses to calculate. Can someone tell me what to do please?
Chris