+ Reply to Thread
Results 1 to 2 of 2

Import a list from SharePoint 2010 into an Excel 2010 worksheet

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    switzerland
    MS-Off Ver
    Excel 2010
    Posts
    38

    Import a list from SharePoint 2010 into an Excel 2010 worksheet

    Hello Everyone

    I have never used excel for interactions before, so this is completely new territory for me.
    I have searched the internet and came up with this code:

    Please Login or Register  to view this content.
    What do I want to achieve?
    Eventually, I want to import a list from a SharePoint into my excel sheet, just as if I would click manually: 'Actions > Export to spreadsheets > Open' in IE and then Copy&Paste it into the sheet.

    What is the problem?
    I am new to this and the above code throws an error 1004: "The worksheet range for the table data must be on the same sheet as the table being created"

    What could be the problem? I have the feeling that it must be possible to import the data this way.
    And also, what does "xlSrcExternal" do in the above code? It holds the value = 0.

    I'd appreciate your help a lot
    Thanks in advance
    Last edited by nivoe; 01-17-2013 at 05:29 AM.

  2. #2
    Registered User
    Join Date
    10-11-2012
    Location
    switzerland
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Import a list from SharePoint 2010 into an Excel 2010 worksheet

    Ok, I found the first error, it is because I had the run macro button placed in "Sheet1", but wanted to have the list in "Sheet2".
    Once I changed that, a new error pops up:

    Again 1004 - An unexpected error has occured. Changes to your data cannot be saved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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