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

  • SEARCH
  • Home
  • 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 6470829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:09:19+00:00 2026-05-25T06:09:19+00:00

I want to support copy/paste functionality of Excel data from the windows clipboard onto

  • 0

I want to support copy/paste functionality of Excel data from the windows clipboard onto a 3 column HTML table. So, the number of rows will need to vary according to the data. This will minimize the amount of effort the client has to put into moving the data into the website. It also keeps me from having to use the office interop to parse Excel data (clunky and error prone).

How can I build support for this? Do I need some kind of javascript to intercept the clipboard and create the table dynamically with jQuery?


Bonus:
What does the data look like on the clipboard, simple delimited data? Does it differ from Excel 2007 to 2010?

  • 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-05-25T06:09:20+00:00Added an answer on May 25, 2026 at 6:09 am

    Assuming you want them to paste into their browser window, you can’t access the clipboard directly. I would probably supply a <textarea> field, and let them paste directly into this. From there, the javascript or server-side code can find the tab characters and newline characters, and load it into the html table. I’d suggest using the javascript split() method on regular expression patterns \t and [\n\r\f] (tabs and newline characters, respectively).

       str = myTextArea.value;
       arr = str.split(/[\n\f\r]/)
       for(i=0; i<arr.length; i++)
       {
          arr2 = arr[i].split(/[\t]/);
          //put it into the html table here...
       }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our users want to copy and paste some rows from an Excel spreadsheet, or
in my application i want to support both mass memory and memory card. but
I have a photo website and i want to support tags as my original
Let's say you have a domain entity User and you want to support the
So, lets say I'm writing a web server and I want to support very
I want to add support for Arabic (or other languages which are currently unsupported)
I am writing a web server in Java and I want it to support
I want to add scripting support for an Objective-C project using the objc runtime.
I want to be able to support multiple versions of Java ME without having
I want to make my avl-tree support duplicate keys but there is a problem

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.