In my macro coding
I am giving 3 urls for file path
1. Url1 - For source file using which I modify data in file 2.
2.Url2 -Destination file
3.Url3- path where destination file is saved
These urls change daily. I have to give path in my macro code.
I want a functionality using which select files and save files.
I can browse files and it's path will be stored in url1 and url2 and url3 variables of macro code
Please suggest how can I achieve this.
[Solved] Get file path from user & paste in macro variable
-
- Posts: 52
- Joined: Wed Aug 22, 2018 5:47 pm
[Solved] Get file path from user & paste in macro variable
Last edited by Kprogrammer on Sat Sep 08, 2018 8:47 am, edited 1 time in total.
Open office 3.1 on Windows 7
Re: Get file path from user and paste it in a macrocode vari
Andrew Pitonyak's AndrewMacro.pdf has an example:
Choosing a File Using the File Dialog
http://www.pitonyak.org/oo.php
Choosing a File Using the File Dialog
http://www.pitonyak.org/oo.php
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Re: Get file path from user and paste it in a macrocode vari
If you would look at any of the example files I pointed you to, then you would have noticed a working file picker dialog.
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
-
- Posts: 52
- Joined: Wed Aug 22, 2018 5:47 pm
Re: Get file path from user and paste it in a macrocode vari
Yes Villeroy.I looked at SheetMerger.ots File it is selecting a folder.
how can i go inside that folder and select file??
how can i go inside that folder and select file??
Open office 3.1 on Windows 7
Re: Get file path from user and paste it in a macrocode vari
Well, yes. It is a folder picker. But meanwhile you should be able to find what you need. Or do you believe we know all that shit by heart?
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
-
- Posts: 52
- Joined: Wed Aug 22, 2018 5:47 pm
Re: Get file path from user and paste it in a macrocode vari
I am really very sorry if I asked something wrong.
I just wanted to get the exact solution for it.
I am a beginner with open office macro code and knowing too many new and good things from the forum about it which is very interesting and helpful for me.
That's why I am taking time to understand the solution provided by you and all.I am making efforts to understand working of code by reading the documents also.
I would like to thanks everyone who responded to my queries.
Again I am very sorry if I asked something silly , or the way I am responding is wrong. I realized and accepting it too.
I just wanted to get the exact solution for it.
I am a beginner with open office macro code and knowing too many new and good things from the forum about it which is very interesting and helpful for me.
That's why I am taking time to understand the solution provided by you and all.I am making efforts to understand working of code by reading the documents also.
I would like to thanks everyone who responded to my queries.
Again I am very sorry if I asked something silly , or the way I am responding is wrong. I realized and accepting it too.
Open office 3.1 on Windows 7