Need to "Reconnect" all Excel Lists in a file from Sharepoint due to 2013 Migration - All URLs changed.

Hi,
I have a lot of excel files with lists that come from Sharepoint.
When we upgrade from Sharepoint 2010 to 2013, all our URLs are chaning since were going to single farm.
When I ran some tests, the excel files in the 2013 Sharepoint site all point to the 2010 Sharepoint lists.
Is there a way to go through all the lists in an excel file and somehow point them to the new Sharepoint Collection?
Thanks!
Mike

Thanks for the advice.
Fortunately I was finally able to come up with a home-grown solution so I'll post here in case someone else needs it.  The code has some extras from my particular application so I just set the basic required code to
bold italics.
Sub Replace_Data_Connection_URLs()
Set wb = ActiveWorkbook
Dim i
Dim FullURL1, FullURL2
Dim didChange
Dim m
Dim arrProt() As Variant    'Just an array I used while checking for sheet protection.
                                    '  >>>>>>>>>  
Sheets need to be unprotected first.
Dim arrConns() As Variant  'Just an array with all the connections and result details.
m = MsgBox("Updating Links in this file: " & Chr(10) & wb.Name, vbOKOnly)
Dim c
ReDim arrConns(0 To 100, 1 To 100)
arrConns(0, 1) = "Connection Name"
arrConns(0, 2) = "Result"
arrConns(0, 3) = "OldURL"
arrConns(0, 4) = "NewURL"
arrProt = Check_Sheet_Status(wb)
c = wb.Connections.Count
If c = 0 Then
    GoTo closeSub:
ElseIf arrProt(0, 3) > 0 Then
'Workbook has protected sheets.  Need to just unlock all for now:
    arrProt = Unprotect_All_Sheets(wb)
End If
m = Empty
For i = 1 To c  'Each conn In wb.Connections
    With wb.Connections(i).OLEDBConnection
        txt = .CommandText
        Debug.Print "Original Connection:  "; txt
        FullURL1 = GetOldURL(txt)
        txt = Replace(txt, oldURL, newURL)
        Debug.Print "New Connection:  " & txt
        FullURL2 = GetOldURL(txt)
        arrConns((i - 1) * 3 + 1, 1) = wb.Connections(i).Name
        arrConns((i - 1) * 3 + 2, 3) = FullURL1 & " >> " & FullURL2
        arrConns((i - 1) * 3 + 3, 3) = Empty
        If FullURL1 <> FullURL2 Then
            didChange = "Yes"
            Debug.Print "Changed: " & FullURL1 & " to " & FullURL2
            m = m & wb.Connections(i).Name & Chr(10)
'            m = MsgBox("Updating Links in these lists: " & Chr(10) & m, vbOKOnly)
            .CommandText = txt
            .Refresh
            arrConns((i - 1) * 3 + 1, 2) = "Changed"
        Else
            didChange = "No"
            Debug.Print "DID NOT Change: " & FullURL1 & " to " & newURL
'            m = MsgBox("DID NOT Change: " & FullURL1 & " to " & newURL, vbOKOnly)
            arrConns((i - 1) * 3 + 1, 2) = "NO Change"
        End If
    End With
Next i
closeSub:
Set sht = Nothing
Set wb = Nothing
End Sub

Similar Messages

  • Word, PowerPoint and Excel Crash when opening Files from Sharepoint Site.

    Hello,
    I am in the process of rolling out office 2013 company wide. I have started with a batch of test users and a few including myself are reporting various office apps crashing with opening files from our SharePoint site. Although at times it will crash outside
    of the site. 
    I have tired running each app in various modes (Safe-mode, Compatibility mode ect) but the same results keep happening. Although it does not happen all the time on other users machines its more frequent. If i download the file and open it locally this does
    not appear to happen. 
    We are all running Office 2013 SP1 32bit on Windows 7 Machines. 
    One Common issue they everybody seems to have always points to "Faulting module path: C:\Windows\system32\VBScript.dll". I have done some digging but have not encountered any solution that points to this file. We constantly stay current on the
    latest updates from MS.
    Any suggestions would be very helpful.  
    Faulting application name: POWERPNT.EXE, version: 15.0.4701.1001, time stamp: 0x54e30979
    Faulting module name: VBScript.dll, version: 5.8.9200.17267, time stamp: 0x54e80d2c
    Exception code: 0xc0000005
    Fault offset: 0x00004b18
    Faulting process id: 0x235c
    Faulting application start time: 0x01d05cfec4e68efd
    Faulting application path: C:\PROGRA~2\MICROS~2\Office15\POWERPNT.EXE
    Faulting module path: C:\Windows\system32\VBScript.dll
    Report Id: 06a26b9a-c8f2-11e4-82f5-f01faf3ff4e9 
    Faulting application name: EXCEL.EXE, version: 15.0.4693.1000, time stamp: 0x54b5cf28
    Faulting module name: VBScript.dll, version: 5.8.9200.17229, time stamp: 0x54b494b6
    Exception code: 0xc0000005
    Fault offset: 0x00004b18
    Faulting process id: 0x10c0
    Faulting application start time: 0x01d0591c4e4be9d4
    Faulting application path: C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE
    Faulting module path: C:\Windows\system32\VBScript.dll
    Report Id: 991c342e-c50f-11e4-bb22-f01faf3ff4e9
    Faulting application name: WINWORD.EXE, version: 15.0.4693.1000, time stamp: 0x54b5d322
    Faulting module name: VBScript.dll, version: 5.8.9200.17229, time stamp: 0x54b494b6
    Exception code: 0xc0000005
    Fault offset: 0x00004b18
    Faulting process id: 0x18ac
    Faulting application start time: 0x01d058110aaeea68
    Faulting application path: C:\Program Files (x86)\Microsoft Office\Office15\WINWORD.EXE
    Faulting module path: C:\Windows\system32\VBScript.dll
    Report Id: 49c2fed2-c404-11e4-adfe-f01faf3ff4e9
    In some instances even outlook will crash as well although I think this is unrelated to sharepoint. 
    Faulting application name: OUTLOOK.EXE, version: 15.0.4693.1000, time stamp: 0x54b5d37b
    Faulting module name: VBScript.dll, version: 5.8.9200.17229, time stamp: 0x54b494b6
    Exception code: 0xc0000005
    Fault offset: 0x00004b18
    Faulting process id: 0x113c
    Faulting application start time: 0x01d05911e9f9cde2
    Faulting application path: C:\Program Files (x86)\Microsoft Office\Office15\OUTLOOK.EXE
    Faulting module path: C:\Windows\system32\VBScript.dll
    Report Id: bb795581-c508-11e4-bb22-f01faf3ff4e9

    Bump - Wondering if anybody has seen this before?

  • Download all excel files from sharepoint location to local folder

    Hi,
    How to I copy all excel files stored at sharepoint location to local folder?
    Regards,
    Nidhi

    Hi NidhiP,
    To download Excel files from a SharePoint library by using SSIS, we need to make use of the Script Task. In the Script Task, we can use the methods provided by
    Lists Web Service to work with SharePoint files, and then use the
    WebClient.DownloadFile Method or
    FileStream Class to transfer the files from SharePoint to local file system.
    For the code examples, please refer to:
    http://www.codeproject.com/Questions/457161/how-to-download-files-from-Sharepoint-document-lib?tab=mostrecent 
    http://blogs.msdn.com/b/sowmyancs/archive/2007/09/15/how-to-download-files-from-a-sharepoint-document-library-remotely-via-lists-asmx-webservice-sps-2003-moss-2007.aspx 
    http://sqlblogcasts.com/blogs/drjohn/archive/2007/11/04/downloading-excel-files-from-sharepoint-using-ssis.aspx 
    Regards,
    Mike Yin
    TechNet Community Support

  • How to export All computer list with operating system from AD and all attributes like disable or enable and OU location also?

    how to export All computer list with operating system from AD and all attributes like disable or enable and OU location also?
    I have tried with dsquery below but status is not showing there.
    dsquery * -filter "(objectCategory=computer)" -attr name operatingSystem

    last logon user name - not really stored (or lined) with computer object.  However, you can get this info during the logon process or from the computer.  Here is method:
    http://portal.sivarajan.com/2010/07/user-profile-and-os-info-powershell.html
    Santhosh Sivarajan | Houston, TX | www.sivarajan.com
    ITIL,MCITP,MCTS,MCSE (W2K3/W2K/NT4),MCSA(W2K3/W2K/MSG),Network+,CCNA
    Windows Server 2012 Book - Migrating from 2008 to Windows Server 2012
    Blogs: Blogs
    Twitter: Twitter
    LinkedIn: LinkedIn
    Facebook: Facebook
    Microsoft Virtual Academy:
    Microsoft Virtual Academy
    This posting is provided AS IS with no warranties, and confers no rights.

  • Using SQL stored procedures How to get the list of .rar files from e:\Tempbackup directories from the different remote desktop windows server and delete the .rar files which contains the current month and date

    Concept:
    Every month i need to find the list of .rar files from the
    E:/TempBackup directory from the different environments (remote desktop servers) and i need to delete the current month
    .rar files alone from the respective (E:/TempBackup) directory. below is example files structure inside the
    E:/TempBackup.
    example:
    zDROP_2014_08_31_Backups.rar
    zDROP_2014_09_31_Backups.rar
    zDROP_2014_10_31_Backups.rar
    from the above list i need to delete the zDROP_2014_08_31_Backups.rar(current month) file alone and also logs should be capture for this deletion.
    key words for this are zDROP and Current month and date.
    i need a stored procedure for this concept. could you please help on this.

    Hello,
    You can schedule an operating system task (Control Panel -> Schedule task) to either call a batch file or a PowerShell script.
    Please read the following resources for examples:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/61373719-fffb-4d94-bdbe-7d8ed8620b44/delete-filesfolders-on-remote-servers-using-powershell?forum=winserverpowershell
    http://www.networknet.nl/apps/wp/archives/943
    http://jeffwouters.nl/index.php/2011/10/powershell-script-to-delete-files-older-that-a-week/
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to find list or folder name from SharePoint document URL

    I'm implementing the SharePoint client object model in my VSTO application in .NET framework 4.0(C#).
    Actually we open MS Word files from SharePoint site, we need to create a folder inside the opened documents list/folder and after it we want to upload/add some files to that created folder.
    My problem is that how to get list name/title and folder name of opened document by using the documents URL or Is there an another option to find the list or folder name of opened document.
    Any help will be appreciable.

    In document Library you can get the name of document library directly in URL. for folder name you can try below:
    using System;
    using Microsoft.SharePoint;
    namespace Test
    class ConsoleApp
    static void Main(string[] args)
    using (SPSite site = new SPSite("http://localhost"))
    using (SPWeb web = site.OpenWeb())
    if (web.DoesUserHavePermissions(SPBasePermissions.BrowseDirectories))
    // Get a folder by server-relative URL.
    string url = web.ServerRelativeUrl + "/shared documents/test folder";
    SPFolder folder = web.GetFolder(url);
    try
    // Get the folder's Guid.
    Guid id = folder.UniqueId;
    Console.WriteLine(id);
    // Get a folder by Guid.
    folder = web.GetFolder(id);
    url = folder.ServerRelativeUrl;
    Console.WriteLine(url);
    catch (System.IO.FileNotFoundException ex)
    Console.WriteLine(ex.Message);
    Console.ReadLine();
    http://msdn.microsoft.com/en-us/library/office/ms461676(v=office.15).aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/801d1a06-0c9b-429b-a848-dd6e24de8bb9/sharepoint-webservice-to-get-the-guid-of-the-folder?forum=sharepointdevelopmentlegacy
    You can also try below:
    http://blogs.msdn.com/b/crm/archive/2008/03/28/contextual-sharepoint-document-libraries-and-folders-with-microsoft-dynamics-crm.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d2d5d7cf-9bbd-4e0f-a772-ecdce4e6149f/how-to-fetch-document-guid-from-sharepoint-document-library-using-sharepoint-web-service?forum=sharepointdevelopmentlegacy
    http://stackoverflow.com/questions/2107716/how-to-get-guid-of-a-subfolder-in-a-document-library-programmatically

  • Whats the best way to transfer all my pic and vid files from Mac Air to back up drive to free up space on hard disk?

    whats the best way to transfer all my pic and vid files from Mac Air to back up drive to free up space on hard disk?

    Get a third drive if needed, open the Time Machine pane of System Preferences, set it not to exclude that drive, and drag the files to it. If you're moving an iTunes or iPhoto library, launch the application with the Option key held down and choose the moved library.
    (118789)

  • Read and write excel sheet data from uploded file in sharepoint site programmatically 2013

    hi team,
    I am working on sharepoint 2013.I want to read and write data in excel sheet (micrsoft excel) from stored file in shrepoint docoumnt library .please suggest me
    vijay

    Hi
    Vijay,
    check those links
    http://www.sharepointwithattitude.com/archives/61
    https://social.technet.microsoft.com/Forums/en-US/e760051b-a92f-473c-9ec9-0f0c36c99e40/read-and-write-excel-sheet-data-from-uploded-file-in-sharepoint-site-programmatically-2013?forum=sharepointdevelopment
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • Can't open Excel files from Sharepoint 2013

    I am having an issue with opening Excel files from SharePoint 2013. If I click on an excel file it comes up with the error below.
    If I click Try again I get the message below also:
    If I try to open Word or PDF files they open correctly in the appropriate client and I have the option of checking them out and editing them. Any ideas why this would only be happening to Excel files?
    Thanks,
    Shaun

    Hi Shaun,
    I understand that the Excel files cannot be opened from SharePoint in Microsoft Excel.
    Can these files be viewed in the browser?
    I recommend to download a copy of the files with issue and then open them in Excel to see if the issue still occurs.
    If above cannot work, I recommend to repair Office.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • I paired my old LG phone using bluetooth exchange and uploaded all of the Voice Memo files from it to my macbook and I can't find the file, where would it be located ?

    I paired my old LG phone using bluetooth exchange and uploaded all of the Voice Memo files from it to my macbook and I can't find the file, where would it be located ?

    You cannot update iPhone 4 to IOS 8.1.2, the highest you can update is IOS 7.1.2.
    Unless you've iPhone 4S (looks similar to iPhone 4)

  • How do I use an Excel list to relocate files on my computer? Scripting?

    I have a very large file at work with hundreds of rows of data at a time.
    Every week or so we need to find a certain amount of those SKU's and find the corresponding file to send out to our buyers.
    Excel Data:
    A438-9
    A2974-87
    D4049-90
    A1799-41
    P1231-3947
    Now scattered throughout the main computer in different folders, are the photo files of every product, titled by product code:
    A438-9.tif    
    A2974-87.jpg    
    D4049-90.jpg
    A1799-41.png
    P1231-3947.tif
    So now, let's say a buyer wants to see what those 5 products look like.
    What we're doing now is copying the values in each independent cell, opening spotlight on the finder, pasting the value, then the corresponding file comes up
    then we drag it into a folder thats on the desktop. We do this for all 5 products, copy, paste, drag, drop, repeat. We then send it to the customer.
    What is the issue is that there aren't 5 products, there's 150 or so each week. Takes up a good hour to do this and there has to be an easier way.
    I tried using some of the scripts I looked up online but it kept saying 'compile error'
    Please help!!

    This will take all names listed in Col A, search for that name (in the Home Directory) with a jpg or tif or png extension, and if found, copy to the Desktop (edit as needed):
    tell application "Microsoft Excel"
              tell active sheet
                        tell used range
                                  set rc to count of rows
                        end tell
                        set theList to get value of range ("A1:A" & rc) as list
                        repeat with theItem in theList
                                  do shell script "find ~  \\( -iname " & quoted form of (theItem & ".jpg" as string) & " -o -iname " & quoted form of (theItem & ".tif" as string) & " -o -iname " & quoted form of (theItem & ".png" as string) & " \\)  -exec cp {} ~/Desktop/ \\; "
                        end repeat
              end tell
    end tell
    (This is similiar to the post in: https://discussions.apple.com/message/23682857)

  • Is there any REST API to get all the Site and site Collections from Sharepoint Online

    Hi,
    I have one SharePoint Online tenant. We are using REST API to integrate SharePoint to our internal System.
    For my use case I need to get all the SharePoint sites ans Sitecollections. From each SiteCollection I need all the subsites under this.
    I have used below REST Query
    http://<Base site url>/_api/web
    This doesn't give me all the Site collections
    Could any one please give me some way to get all the Site collections and sites from my sharepoint tenant through REST API.
    Thanks,

    Hi Abhiram,
    There seems no such endpoint in SharePoint REST API can retrieve a list of site collections in a SharePoint Online tenant:
    https://msdn.microsoft.com/en-us/library/office/jj860569.aspx#Reference
    If Client Object Model can be an option for you, you can use Tenant object to achieve what you want:
    http://social.technet.microsoft.com/wiki/contents/articles/24050.perform-basic-admin-operations-using-csom-in-sharepoint-online.aspx#Scenario_3_Fetch_All_Site_Collections
    Anyway, I would suggest you submit a feedback to the Office Developer Platform if there any expectation about the future version of REST API of Office 365 SharePoint
    Online:
    http://officespdev.uservoice.com/
    It
    is a place for customers provide feedback about Microsoft Office products. What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft
    Product Team will take it into consideration when designing the next version in the future.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to get list of selected files from swf to javascript ?

    Hi everybody,
    i want to make an upload script with swf and javascript. I want to do selecting files via swf then uploading files to server via javascript. I have searched SWFupload plugins but they are not working as i need. I am new here and i do some search, i see it is possible to save list of selected files in FileReferenceList array, but i dont know if is it possible to pass this array into javascript and then make upload progress via javascript ?

    Hi,
    You will not be able to get the local file paths from FileReference due to flash security restrictions.
    Hence I think it is not possible to pass the file reference data to javascript and load the same.
    Warm Regards
    Deepanjan Das
    http://deepanjandas.wordpress.com/

  • Is it possible to set up a new library that accesses referenced files from an old library AND retains all my Aperture adjustments

    I am moving files from one external hard drive to another, using the 'relocate originals' file command. This is very slow & tedious. Is there away to shortcut this? I was hoping to just set up a new library that would access the same files & folders on the new hard drive but this only results in preserving my original files, not all the Aperture data, the adjustments and metadata.
    Is there no better way than the 'relocate originals' file command?

    Just copy the library over to the new drive?

  • Need to create a function to receive binary files from Java WebDynpro

    Hey,
    I need to recieve files from java Webdynpro and save them as a file on the backend
    system. After that, the file will be loaded to the documentum.
    In a function module, I only can get the files as a String. Therefore (I think), I need the
    binary file as base64 encoded. Otherwise I can´t get it as a string.
    Now I need to decode it in the backend, but how? I know, there are HTTP-classes
    in newer system, but not in the 4.6C System, I have here.
    Any idea, how I can recieve the files in the function module and transfer it as binary
    file to the backend system?
    If I load a file from the gui with gui_upload, I get the binary file as an internal table
    and can transfer it to the backend filesystem now. Maybe I can get the binary file
    in this way in the function?
    Thank You for Your help!
    Arne

    http://jakarta.apache.org/commons/net/

Maybe you are looking for

  • Problem IXOS BSP and JPEG Format

    Hello, I have a problem with JPEG By displaying documents from archive Server in IE7.Only the first page of the document is displayed in Web Browser but not in the livelink viewer. if the document is TIFF type the process is correct(IE7 Browser calls

  • HDCP ***** Apple!

    Be careful when you download HD content from Apple, you might not be able to watch it! Apparently my Apple Cinema Display is not up to it because it is not HDCP compliant, therefore even though it is capable of displaying HD content from everywhere e

  • How can someone post an event to my iPhone 4S calander

    I have just received an event alert on my iPhone 4S from somebody who I do not know ??? How have they accessed my calendar and can unstop this Thank you

  • How can I compress the music on my ipod?

    I remeber reading somewhere that I can use itunes to compress the music on my ipod so the music takes up less space. So my question is, exactly how do I do this? Also is the sound quality of my music compromised? If so, how much is it compromised whe

  • Special Online Deals Website Proudly Built With Adobe Spry

    Hi Don and Kin, I built http://www.icouponize.com/ using PHP and the Adobe Spry Ajax framework, and would like to request to add it to your list of websites implementing Adobe Spry. iCouponize.com features online and printable coupons, clearance sale