Invalid directory separator used for Mac OS X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Excel2LaTeX |
Triaged
|
Medium
|
Unassigned |
Bug Description
In class module CModel, property IModel_
Public Property Get IModel_
If sFileName Like "?:\*" Or sFileName Like "\\*\*" Then
Else
End If
End Property
Absolute filenames probably start with a forward slash, instead of one of the two notations checked for (I have not checked this).
Worse, in the Else-part the backslash will cause the file to be generated in the parent directory, not in the worksheet directory.
For Mac's, a kludge is to replace '\' by ':'. It is probably better to use a system function for the default directory separator character, but since I am no VBA expert I cannot suggest a proper fix myself.
With current code, a file "directory\
Instead, a file called "tablename.tex" should be created in the same directory as the worksheet.
Office for Mac version 14.3.2, Mac OS X 10.8.3.
This is unfortunate, and will be addressed in a future release. I am resolving other incompatibilities using the "preprocessor" of VBA, and so I will do in this case. Thanks for reporting.