+ Reply to Thread
Results 1 to 1 of 1

Excel VBA (under Citrix) issue How to read a list of files on SharePoint

Hybrid View

  1. #1
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Excel VBA (under Citrix) issue How to read a list of files on SharePoint

    Hi guys,
    I'm stuck with the following problem.
    I've got a working Excel application for when it comes to local folders or network folders but now I what to get to work using SharePoint.
    The Excel Application is opened in Excel (not browser) so all VBA is active and works as goes to opening the file and initializing the only problem is that I cannot get it to list Excel files

    I've checked out many routines but is always tells me that the path is recognized of after a long timeout incorrect path or connection.
    With the initial h t t p s etc it stops immediately telling me that the pas is invalid or doesn't exist

    If I remove the initial h t t p s colon then it waits and finally returns an error that it cannot find the folder (it exists and I can open it when logged into the environment)

    Global Const mySharePointRoot As string = "https://connect.somesitename.de/somefolder/anotherfolder/WOW/Shared%20%20documents/Projectdocuments%20vanaf%20sept%202019/Janis/"
    Global Const myFolder As String = "Excelfiles\"
    
    Public Sub ListFiles()
        Dim folder As folder
        Dim f As File
        Dim fs As New FileSystemObject
        Dim RowCtr As Integer
    
        RowCtr = 1
        Set folder = fs.GetFolder(mySharePointRoot & myFolder)
        For Each f In folder.Files
           Cells(RowCtr, 1).Value = f.Name
           RowCtr = RowCtr + 1
        Next f
    End Sub
    No spaces in any value and if I replace all the forward slashes with back slashes or vv, no difference.

    Any suggestions?

    Mapping the folder to a driveletter doesn't work either (probably because of the Citrix Environment) I have to work with as weel as the user I'm trying to help

    Any help or tips will be appreciated, my best friend Google has not given up the Eureka solution either (yet)



    P.S. I've posted the same question here: https://forums.techguy.org/threads/e...point.1249916/
    Last edited by Keebellah; 09-02-2020 at 10:02 AM. Reason: Adding other forum link
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel Online on Sharepoint Pivot Table Issue
    By gregwong in forum Excel General
    Replies: 0
    Last Post: 11-15-2018, 03:03 PM
  2. Save files from an Outlook SharePoint list via VBA
    By koltregaskes in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 09-04-2017, 09:14 AM
  3. [SOLVED] Open excel and PDF files from sharepoint
    By shreeja178 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2016, 02:15 AM
  4. How do we copy names of the pdf files from a folder to excel under citrix environment
    By Akshdggupta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2016, 11:03 AM
  5. Replies: 0
    Last Post: 10-08-2013, 10:54 AM
  6. Citrix Server closing Excel on save issue
    By damo_uk in forum Excel General
    Replies: 1
    Last Post: 05-18-2009, 07:59 AM
  7. [SOLVED] Citrix Excel VBA Search "There were no files found"
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2006, 10:34 PM

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