E
Ed
I want to save an INI file to a user selected location. I need to automate
the process with VBA.
I have read the data I want from the registry and placed it onto my editing
screen. I want the user to navigate to the folder to store the file and save
it as 'MyINIFile.ini'.
With Dialogs(wdDialogFileSaveAs)
.name = "MyINIFile.ini"
CloseNum = .Display
End With
When the above runs, Word forces me into a doc file.
When I change to this:
With Dialogs(wdDialogFileSaveAs)
.name = "XXXXX.ini"
.Format = wdFormatDOSTextLineBreaks
CloseNum = .Display
End With
Word forces me into a .txt file. No option exists for INI.
Any way to allow an INI file extension (and not confuse the user)? (Note
that I use '.Display' not show. That way I can at least get a user to
navigate to the proper folder, capture the path and behind the scenes save
the proper file, but that is really confusing to the user who will think he
has saved a txt file.)
Ed (in Virginia)
the process with VBA.
I have read the data I want from the registry and placed it onto my editing
screen. I want the user to navigate to the folder to store the file and save
it as 'MyINIFile.ini'.
With Dialogs(wdDialogFileSaveAs)
.name = "MyINIFile.ini"
CloseNum = .Display
End With
When the above runs, Word forces me into a doc file.
When I change to this:
With Dialogs(wdDialogFileSaveAs)
.name = "XXXXX.ini"
.Format = wdFormatDOSTextLineBreaks
CloseNum = .Display
End With
Word forces me into a .txt file. No option exists for INI.
Any way to allow an INI file extension (and not confuse the user)? (Note
that I use '.Display' not show. That way I can at least get a user to
navigate to the proper folder, capture the path and behind the scenes save
the proper file, but that is really confusing to the user who will think he
has saved a txt file.)
Ed (in Virginia)