Recalculation problems (VBA)

pecosvil

Board Regular
Joined
Apr 13, 2010
Messages
52
I have a project which at the very beginning sets calculation to Manual.
I also have a spreadsheet "Loans" that has an Event subroutine that calculates certain range whenever it is activated

Code:
Option Explicit
Private Sub Worksheet_Activate()
    Worksheets("Loan_Information").Rows(4).Calculate
End Sub


The problem I found is that whenever that range is recalculated, it automatically calls one UDF that is in another module and that is not even used in the range to be calculated. As you can imagine, that slows down the spreadsheet. To be more precise, I searched in Row(4) and couldn't find the problematic UDF.

Any ideas?
Thanks!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
try:
Code:
Private Sub Worksheet_Activate()
    Application.EnableEvents = False
    Worksheets("Loan_Information").Rows(4).Calculate
    Application.EnableEvents = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top