Change standard settings - .csv import

Discuss the spreadsheet application
Post Reply
woercel
Posts: 2
Joined: Fri Sep 19, 2008 11:10 am

Change standard settings - .csv import

Post by woercel »

Hi,
every time i open a csv file in oocalc i have to select the delimiter ";" manually.
is it possible to change the standard delimiter to semikolon?
cheers
woercel
OOo 2.4.X on Ubuntu 8.x
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: change standard settings - .csv import

Post by Villeroy »

Is read-only access to a whole directory of semicolon-csv OK for you or do you need to edit the csv?
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: change standard settings - .csv import

Post by Villeroy »

Anyhow, http://www.oooforum.org/forum/viewtopic ... 991#258991 offers two solutions:
1. Macro to read a csv with prepared import settings into a prepared template (may include calculation models, formatting an stuff)
2. A pseudo-database (read-only) made from a directory of csv-files
Another solution, similar to 1: [Tutorial] External Links In Calc Chapter 2. "Linked Sheet From File"
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
woercel
Posts: 2
Joined: Fri Sep 19, 2008 11:10 am

Re: Change standard settings - .csv import

Post by woercel »

The option with the macro sounds nice,
but how to do that???
OOo 2.4.X on Ubuntu 8.x
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Change standard settings - .csv import

Post by Villeroy »

woercel wrote:The option with the macro sounds nice,
but how to do that???
Shure, everybody loves macros. I don't. Anyway, here we go:
Tools>Macros>Orgainize>OOo Basic...
Button [Organizer...]
Tab: Libraries, location: "My Macros&Dialogs"
[New...], name: let's say "Calc"
tab:Modules, browse the new library in container "MyMacros" and select the contained module "Module1".
[Edit...]
I would remane "Module1" to something like "csv"
Clear the default content (empty Sub Main) and paste the code from the other forum.
Save the new library [Ctrl+S]
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Hagar Delest
Moderator
Posts: 32667
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Change standard settings - .csv import

Post by Hagar Delest »

See also: [Tutorial] How to install a code snippet.

Thanks to add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Post Reply