|
-
Feb 7th, 2007, 02:28 PM
#1
Thread Starter
Addicted Member
Problem with Calculate
I have a workbook with half a dozen worksheets, where some calculations are done after its respective macro has ran. In the end, the purpose is to present a briefing in a worksheet once a change has been done. This change should be updated in the other worksheets, in order to do the calculations.
The problem is that sometimes, once the change has been done, I can't get to update all the worksheets, even using Calculate. Is this an Excel bug?
And... after closing an reopening Excel, everything works fine again.
Last edited by Fonty; Feb 7th, 2007 at 06:08 PM.
-
Feb 7th, 2007, 02:56 PM
#2
Re: Problem with Calculate
what does the macro do during calculation? does it "paste values" or inserts formula
for example if cell A1 = 2 and cell B1 = 2 in sheet1 and you want to show the sum in cell C1 then what does the macro do?
Range("C1").Value = Range("A1").Value + Range("B1").Value
or
Range("C1").Value = "=" & Range("A1").Value & "+" & Range("B1").Value
Also
How are you generating the Summary(briefing)... using macros or using formulas?
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Feb 7th, 2007, 04:05 PM
#3
Re: Problem with Calculate
It sounds like you have a timing issue where some sheets are dependant upon other sheets already being updated. If so then some other solution may be in order.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 7th, 2007, 04:36 PM
#4
Thread Starter
Addicted Member
Re: Problem with Calculate
Basically, there are 4 sheets. One contains a vector of values whcich are modified by the user. then, the vector is refered in the other 3 sheets with something like =Vector!A2, then in every one of these sheets there are diferent operations within diferent elements of the vector. These operations are aritmethic operations with the INDEX function.
After one element of the vector is changed, it is then updated in the othe sheets and then I run a marco which identifies specific kinds of changes.
The problem is that suddenly, the calculation stop, and even pressing F9 it won't work. It does until I access a single cell and press enter....
-
Feb 7th, 2007, 07:46 PM
#5
Re: Problem with Calculate
Can you see if its possible that there may be a circular reference or some other circular chain of events that are firing between workbooks/sheets?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 8th, 2007, 10:38 AM
#6
Thread Starter
Addicted Member
Re: Problem with Calculate
I checked for circular references and other possible problems, but I found none. In fact, the three sheets where calculations are done, were originaly three independent workbooks, they only take the values of the vector in the main sheet.
What surprises me is that suddenly Excel won't work anymore and even if there is an evident change for a value, an update won't occur pressing F9 but only if the cell is activated and the you press enter.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|