Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7933649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:23:48+00:00 2026-06-03T21:23:48+00:00

It appears to be common knowledge that interop with Excel and .Net is very

  • 0

It appears to be common knowledge that interop with Excel and .Net is very slow. I’m aware of the ability to copy an array of values to a worksheet object in one go, but according to my stopwatch even one command (inside VB.Net) of the type:

 WS.Range(--range string here--).Value = array

…takes over 0.3 s! This adds up since my routine writes dozens of arrays to each worksheet, and there are several worksheets per workbook, and I’ll probably be iterating through several workbooks as well.

If there was a way to write discontinuous, non-rectangular groups of cells at once, then I could do an entire WS with one write command. But I don’t think there’s a way to do that while preserving original values for the “inbetween” cells. These workbooks are pre-formatted so I have to leave particular cells as is.

Anything I can do to speed this up?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:23:49+00:00Added an answer on June 3, 2026 at 9:23 pm

    Ben’s comment above pretty much nailed it; excel’s formula calculations were the bottleneck. I’m relieved, because I knew .Net-Excel interop had a reputation for being slow, but didn’t think it was that slow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It appears that NetBeans and Aptana/RadRails are the most common adopted IDE's for Ruby
How do I display a common window's menu from .Net code, the one that
It appears after much searching that there seems to be a common problem when
It appears that side-swipe menus are becoming a more common interface element as more
Appears that WAS does not support the integration binding. I've tried setting it up
It appears that the simplest, naivest way to do basic sentiment analysis is with
it appears that the Apple site now only provides download for Xcode 3.2, that
It appears that we will have to build/deploy one of our new JBoss apps
Collection was modified; enumeration operation may not execute. appears to be a common error
It appears that PDF::API2 does not support PDF 1.5 (and later) compression of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.