auto calculation

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
771
Office Version
  1. 365
Platform
  1. Windows
Good AFternoon,

I have a spreadsheet with a button that opens set sheets depending on the password as below. Is there anyway i can add in VB that auto calculation is turned on as the sheets that open need to automatically calculate to give scores.

Code:
Dim myBook As Workbook
Dim iRow As Long
Dim FYV_Sht As Worksheet
Dim lRow As Integer
Dim I As Long
Dim gotcha As Boolean
Dim cCell As Variant
Dim MyManagerName As String
Dim MyFind As Object
    
    If Worksheets("Info").Range("S" & cmbMgrs.ListIndex + 2) = txtPass Then ' Start of 1st If Block
        MsgBox "Correct password entered, please wait while the correct sheets are opened", vbInformation
        Sheets("Main").Visible = -1
        With Worksheets("Info")
            Select Case cmbMgrs.Text
            Case .Range("R3")
The above code opens set sheets depending on the password being correct

Many Thanks
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi

Nothing in your posted code attempts to open a workbook.

You can change the Application setting to be automatic:

Code:
Application.Calculation = xlCalculationAutomatic
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,240
Members
452,898
Latest member
Capolavoro009

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