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?
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.
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).
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks