+ Reply to Thread
Results 1 to 2 of 2

Formulas - Please urgent

  1. #1
    Registered User
    Join Date
    04-15-2005
    Posts
    1

    Formulas - Please urgent

    Hello,

    We are developing a Toolbar in Excel using VB, XML and VBA and populating data from our server to client remote machine.

    Example:

    Objective is to populate data in Sheet1 (Active Work Sheet).
    Selected cells and When click on Command bar button in customized toolbar, problem is if there are any formulas in Sheet2, populating data is very slow in Sheet1 and status bar is displaying “Calculating Cells: 100%” for each cell.

    Is there any solution to stop calculating cells while populating data in active sheet1 even though there are any formulas in sheet2? Or else disable formulas while populating data?

    Any other solution in your mind?

    FYI: if I remove sheet2 and do the above process, populating data in Sheet1 is 100% faster than previous.

    Please reply to message ASAP.

    Thanks in advance.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829
    I'm not a VBA expert, but I think this would work.

    Right before populating the data sheet, Execute a statement that sets the EnableCalculation property of the worksheet to FALSE. If I understand correctly, this should prevent Excel from automatically recalculating formulas in that worksheet. After the data sheet is populated, execute another statement to reset the property back to TRUE. You also might have to execute a calculate method on the worksheet to make sure the formulas update after the data are all populated.

+ 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