+ Reply to Thread
Results 1 to 4 of 4

Calculate a Specified Range Only

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    216

    Calculate a Specified Range Only

    Dear all,

    Thank you for reading my post.

    I am a beginner with VBA and have used record macro to make my macro.

    Currently the macro uses the calculate this sheet only, but it is running very slow.

    I have also tried the macro with calculate active sheet only, but that also runs very slow.

    I would like to run my macro with calculate a cell range (e.g. A1:D5) , which uses a range name (e.g. Range_1).

    Could someone please give me the proper syntax?

    I found Range.Calculate and is it as simple as putting in my macro Range_1.Calculate?

    Thanks for any help and apologies if this is a really dumb question?

    Kindest regards JV

  2. #2
    Forum Contributor
    Join Date
    08-27-2009
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    217

    Re: Calculate a Specified Range Only

    Hi John

    Can you please attach an example.

    Thanks

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Calculate a Specified Range Only

    syntax goes like this:

    Worksheets("Sheet1").Range("A1").Calculate
    replace A1 with your defined range name.

  4. #4
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Hong Kong
    MS-Off Ver
    Office 365 PC Version
    Posts
    216

    Re: Calculate a Specified Range Only

    Thanks that works fine, much appreciated and regards JV

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1