+ Reply to Thread
Results 1 to 4 of 4

Options for SHARED text file for RW from VBA

  1. #1
    Registered User
    Join Date
    12-10-2008
    Location
    Aberdeen
    MS-Off Ver
    MS365 VER 2308
    Posts
    90

    Options for SHARED text file for RW from VBA

    My excel file VBA project successfully reads & writes data to/from a text file on our local network. It is used by multiple users within my company, RW to the same txt file on the network.

    I've been asked to share the excel file with another company, who also need to RW to the same txt file, but they don't have access to the network, so I'm looking for somewhere I can host a txt file, suitable for RW from excel across multiple sites.

    I have been looking at FTP, but not sure if I can get Excel to RW directly to a txt file in an FTP location. Would rather not have to build an SQL DB instead of using a simple TXT file, but I'm starting to think that's my only option.

    Any suggestions welcome.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,354

    Re: Options for SHARED text file for RW from VBA

    Have you tried SharePoint? It may be part of your 365 subscription....
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    12-10-2008
    Location
    Aberdeen
    MS-Off Ver
    MS365 VER 2308
    Posts
    90

    Re: Options for SHARED text file for RW from VBA

    I have tried Sharepoint Bernie, but couldn't work out a way to get Excel VBA to append to a txt file on a sharepoint folder. Have you seen this done successfully in the past?
    I've just set up a MySQL database on an online server, but am now struggling to make a connection to it via SSH from VBA. I'll post another post about that.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,354

    Re: Options for SHARED text file for RW from VBA

    Try using VBA to open the file from sharepoint, append the data to the file within the Excel sheet, then save the file to sharepoint.

    To do that, record a macro in desktop Excel where you navigate to Sharepoint and open the file that you want. You should get code like

    Please Login or Register  to view this content.

    Change that to

    Please Login or Register  to view this content.
    Then you can use VBA to write the values to the wb.Worksheets(1) using standard techniques, and then save and close the file.

+ 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. [SOLVED] Options Tab won't open when I select File>Options
    By SummersFabricCrafts in forum Excel General
    Replies: 1
    Last Post: 07-20-2021, 08:30 AM
  2. make text file of a shared workbook
    By StephH in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2020, 10:47 AM
  3. Replies: 3
    Last Post: 11-29-2014, 01:14 PM
  4. Replies: 0
    Last Post: 06-18-2014, 11:54 AM
  5. Replies: 21
    Last Post: 08-13-2012, 01:52 PM
  6. extracting text string with 2 options @ end & limited options
    By ChristianR in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-24-2010, 06:51 AM
  7. Best options for importing text file
    By Greg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-08-2005, 02:06 PM

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