Avoid a dialog box with PasteUnformatted function
Avoid a dialog box with PasteUnformatted function
Hello,
Is it possible to avoid having to reply in a dialog box when using the uno:PasteUnformatted function?
Thank you in advance for your answers.
--
Alain
Is it possible to avoid having to reply in a dialog box when using the uno:PasteUnformatted function?
Thank you in advance for your answers.
--
Alain
LibreOffice 7.5 on Kubuntu 23.04
Re: avoid a dialog box with PasteUnformatted function
Ctrl+Alt+Shift+V (LibreOffice)
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: avoid a dialog box with PasteUnformatted function
Thanks for your reply Villeroy, but it's this keyboard command that usually requires a response in a dialog box that I run in a basic macro and that requires me to validate with the keyboard, which I'd like to avoid.
LibreOffice 7.5 on Kubuntu 23.04
Re: avoid a dialog box with PasteUnformatted function
Ctrl+Shift+V prompts for the type of content.
Ctrl+Alt+Shift+V doesn't.
See menu:Tools>Customize... tab "Keyboard"
Ctrl+Alt+Shift+V doesn't.
See menu:Tools>Customize... tab "Keyboard"
- Attachments
-
- Bildschirmfoto von 2023-06-13 18-13-28.png (21.04 KiB) Viewed 2880 times
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: avoid a dialog box with PasteUnformatted function
Might the Print command help - it outputs to the current output channel (the screen) and doesn't require any acknowledgement.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: avoid a dialog box with PasteUnformatted function
I'm sorry, but as I don't speak English very well, I use Deepl to communicate. I think I was misunderstood. In a macro, using the uno:Pasteunformatted function, I get a dialog box that I don't want; I want the program to send a "press" on the Enter key. Is this possible?
LibreOffice 7.5 on Kubuntu 23.04
Re: Avoid a dialog box with PasteUnformatted function
Which application and document type you want to paste unformatted contents to?I think I was misunderstood. In a macro, using the uno:Pasteunformatted function, I get a dialog box that I don't want; I want the program to send a "press" on the Enter key. Is this possible?
You can put strings, numeric values by macro without any formatting properties and without calling the pasteSpecial feature into the spreadsheet cells.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: Avoid a dialog box with PasteUnformatted function
The data comes from a .csv file containing dates in en/us format. If I use any command other than <Ctrl> <Shift> <Alt> V, the dates are understood as text.
LibreOffice 7.5 on Kubuntu 23.04
Re: Avoid a dialog box with PasteUnformatted function
This is because you ignore the import optioins.
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Avoid a dialog box with PasteUnformatted function
Thanks for your reply, I'll look into it.
LibreOffice 7.5 on Kubuntu 23.04
Re: Avoid a dialog box with PasteUnformatted function
I've tested a multitude of options with ctrl+shift+V but I never get what I get with ctrl+shift+alt+V. In the first case, the dates are pasted as strings with an apostrophe in front of them.
For example, the string 2023/06/13 00:00:03 becomes '2023/06/13 00:00:03 with ctrl+shift+V, whereas it is pasted as a date with ctrl+shift+alt+V.
If you have any ideas, I'd love to hear from you!
For example, the string 2023/06/13 00:00:03 becomes '2023/06/13 00:00:03 with ctrl+shift+V, whereas it is pasted as a date with ctrl+shift+alt+V.
If you have any ideas, I'd love to hear from you!
LibreOffice 7.5 on Kubuntu 23.04
Re: Avoid a dialog box with PasteUnformatted function
I've come up with a solution: copy and paste line by line.
The disadvantage, apart from the slowness, is that the empty cells in the source overwrite the existing cells in the destination, which wasn't the case with block copying. But if it's the only solution for not having to be present when the macro is executed, it's a good help.
The disadvantage, apart from the slowness, is that the empty cells in the source overwrite the existing cells in the destination, which wasn't the case with block copying. But if it's the only solution for not having to be present when the macro is executed, it's a good help.
LibreOffice 7.5 on Kubuntu 23.04