Is there a way to make excel recalculate a spreadsheet if a given condition is met/not met?
EG, =if(A1 ><1,"",recalculate)
Is there a way to make excel recalculate a spreadsheet if a given condition is met/not met?
EG, =if(A1 ><1,"",recalculate)
Regards,
David Obeid
I assume your worksheet is set to manual recalculation and that you meant that A1<>1 (Not equal to) below?
If so you can place this code in the Worksheet_Change event
Hope this helps!Please Login or Register to view this content.
Originally Posted by DavidObeid
---------------------------------------------------
ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
To insert code into the VBE (Visual Basic Editor)
- Copy the code.
- Open workbook to paste code into.
- Right click any worksheet tab, select View Code
- VBE (Visual Basic Editor) opens to that sheets object
- You may change to another sheets object or the This Workbook object by double clicking it in the Project window
- In the blank space below the word "General" paste the copied code.
Thanks Excelenator,
I actually meant >= 1
The spreadsheet automatically calculates, but some values are user defined, some the result of formulae and some the result of a randomly generated number.
I don't know VBA, so can you give me idiot proof instructions as to how to implement the solution?
Sure thing.
- Copy the code below
- Right click on the sheet tab of the sheet containing your data
- Select "View Code"
- This will take you to the VBE (Visual Basic Editor)
- You should see two drop down boxes towards the top of the screen
- The one on the left says "General". Drop down and select "Worksheet"
- Highlight the code that gets populated and right click and select Paste to paste in the code below.
- Return to your worksheet
Now anytime the value of Cell A1 is >= 1 the worksheet will recalculate.
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks