Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Reading SharePoint List data programmatically thru Excel 2007

Reading SharePoint List data programmatically thru Excel 2007

Scheduled Pinned Locked Moved SharePoint
sharepointtutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arut jothi
    wrote on last edited by
    #1

    Hi, I'm working on how to read a SharePoint list view data programmatically thru Excel 2007 VBA/ macros. Could you provide me few pointers to get how to implement this? Thanks Arut

    A 1 Reply Last reply
    0
    • A arut jothi

      Hi, I'm working on how to read a SharePoint list view data programmatically thru Excel 2007 VBA/ macros. Could you provide me few pointers to get how to implement this? Thanks Arut

      A Offline
      A Offline
      arut jothi
      wrote on last edited by
      #2

      Since, there were no replies on this post, I'm posting the solution I had tried out on this. May be it'll be helpful to some one. (a) Open or access the SharePoint site list in a browser, from which you want to export the data. (b) Click 'Export to spreadsheet' under 'Actions' in the list tool bar. This action allows you to export the data and before exporting the data, it'll prompt you to save or open the web query. Click 'Open' button and export the query as a data connection file to a local folder. This saves the data connection file to the local folder as .odc file. (c) You can later import this data connection file into Excel's data connections, which can be called from the VBA to get the latest data from SharePoint list. Thanks Arut

      R 1 Reply Last reply
      0
      • A arut jothi

        Since, there were no replies on this post, I'm posting the solution I had tried out on this. May be it'll be helpful to some one. (a) Open or access the SharePoint site list in a browser, from which you want to export the data. (b) Click 'Export to spreadsheet' under 'Actions' in the list tool bar. This action allows you to export the data and before exporting the data, it'll prompt you to save or open the web query. Click 'Open' button and export the query as a data connection file to a local folder. This saves the data connection file to the local folder as .odc file. (c) You can later import this data connection file into Excel's data connections, which can be called from the VBA to get the latest data from SharePoint list. Thanks Arut

        R Offline
        R Offline
        riyaz_786_p
        wrote on last edited by
        #3

        Can the same option be used to get the document library and use it in excel or crystal reports.?

        Riyaz Zujer Patanwala I.T.Programmer Al Jaber Energy Services P.O.Box 47467 Abu Dhabi U.A.E.

        A 1 Reply Last reply
        0
        • R riyaz_786_p

          Can the same option be used to get the document library and use it in excel or crystal reports.?

          Riyaz Zujer Patanwala I.T.Programmer Al Jaber Energy Services P.O.Box 47467 Abu Dhabi U.A.E.

          A Offline
          A Offline
          arut jothi
          wrote on last edited by
          #4

          Riyaz, It should be quite possible as the underlying base object is SPList, irrespective of custom list or document library. However, I guess you might need to have fields in the document library that display information. Thanks Arut

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups