Calculating an active cell range

jmcmahon

New Member
Joined
Jan 21, 2003
Messages
10
Hi,

I have a spreadsheet that calculates a range on sheet2 for me, but it also calculates sheet1. I just want sheet 2 calculated and the data table on sheet1 to not calculate.

Here is the code I'm using (I recorded a macro to get this)

right now Excel is set to manual calculate.

I've also had it set to automatic except for data tables
and still have the table on sheet1 calculating when I run this macro.


Sub Calculatesheet()
'
' Calculatesheet Macro
'
' Keyboard Shortcut: Ctrl+x
'
Range("b2:An32").Select
Calculate
End Sub


Thanks,
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi,

Have you tested ... without the Select ...:

Code:
[COLOR=#333333]Range("B2:AN32").[/COLOR][COLOR=#333333]Calculate[/COLOR]

HTH
 
Upvote 0
Hi,

Have you tested ... without the Select ...:


Code:
[COLOR=#333333]Range("B2:AN32").[/COLOR][COLOR=#333333]Calculate[/COLOR]

HTH


thanks,

Just tried it, it doesn't calculate the range, I think it may need to select it before it calculates it
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,052
Members
452,542
Latest member
Bricklin

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