View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Lars Schouw Lars Schouw is offline
external usenet poster
 
Posts: 19
Default turning off automatic calculation when loading VBA add-in

Found a solution

ThisWorkbook.Activate
Application.Calculation = xlCalculationManual

because:
You need to have a workbook active before you can set the Calculation
property and although it seems counterintuitive, you can "activate"
your
add-in workbook to serve this purpose even though it's not visible.
You need to have a workbook active before you can set the Calculation
property and although it seems counterintuitive, you can "activate"
your
add-in workbook to serve this purpose even though it's not visible.

Source:http://www.excelforum.com/archive/in.../t-260962.html

Thanks
Lars