+ Reply to Thread
Results 1 to 2 of 2

importing a downloaded from file from web is not working

Hybrid View

  1. #1
    Registered User
    Join Date
    05-25-2020
    Location
    Tomball Texas
    MS-Off Ver
    office 16
    Posts
    1

    importing a downloaded from file from web is not working

    Hi,
    I have a userform saved as an frm and frx. I uploaded these files to github. When i download them from github and try to import the the .frm file it gets imported as a bas file. why is this happening? how can i fix?
    Last edited by pearlsnake; 05-25-2020 at 09:57 AM.

  2. #2
    Registered User
    Join Date
    07-24-2017
    Location
    Montreal
    MS-Off Ver
    MS365
    Posts
    2

    Re: importing a downloaded from file from web is not working

    I know this thread is a bit old, but in case anyone has the same issue:

    You issue probably comes from the fact that you have a .gitattributes file with the line * text=auto or something similar. This line will make Git convert your line endings from Windows-style (CRLF) to Unix-style (LF). The problem with that is that the VBE is expecting the files to use CRLF and when you download a single file from GitHub, they serve you the raw file with LF line endings. To solve this issue, you can download the files from GitHub by downloading the whole repo as a .zip file. This works because GitHub will convert the LF back to CRLF when generating the .zip file.

    If you want to be able to be able to single files from GitHub without any issues, you need to:
    (1) Remove * text=auto from your .gitattributes files;
    (2) Re-export your VBA components;
    (3) Push your changes to GitHub (it will look like you changed all lines of code, but that's because each line contains a line ending).

+ 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] Downloaded excel file is too small to read
    By 300Guy in forum Excel General
    Replies: 24
    Last Post: 07-23-2019, 09:14 PM
  2. automatically save downloaded file
    By miso.dca in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2018, 06:11 PM
  3. Replies: 3
    Last Post: 10-16-2017, 08:02 AM
  4. Open file downloaded by a non-file URL
    By whizzdome in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-06-2014, 02:32 AM
  5. Binary file downloaded from the bank
    By Bain in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 14
    Last Post: 09-30-2013, 12:42 PM
  6. Excel 2007 : help with matching downloaded file to a table
    By catherine3 in forum Excel General
    Replies: 0
    Last Post: 11-01-2011, 02:13 PM
  7. Replies: 3
    Last Post: 12-10-2007, 05:38 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