Writing to existing xlsm files [closed] - openpyxl

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Given the documentation above, does this mean it is not possible to write to an existing .xlsm file, not modifying previously existent information?

No, it means that if there is a file with the same name, it will not warn you, it will just replace the file.
You can modify existing excel files, however, it doesn't save modifications, rather it overwrites the old file with a new file with modifications.

Related

How to read yaml file in Kotlin? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a Kotlin project, I am running a simple main function, and I want to start it by reading a YAML file, that is located at the same directory, and saving it into some kind of a data structure, similar to dictionary in Python. How can I do it?
Reading seems like the same for reading any other file, after that the parsing and mapping depend on you
File("/{fullPath}/{ProjectName}/src/reader/example.yaml").forEachLine {
println(it)
}
So I'm using the full path but you can surely optimized that according to your enviroment

Download file from URL through macro and save it on a location [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am trying to download a file from a website and want to save at a desired location, while doing this my code get stuck on the save as dialog box. After this I am not able to pass the location path after that dialog box get open.
If you are trying to download a file from a url then you can use the method in this blog.
Download a file from url using VBA
But you will need to change saving path, file type etc. accordingly. It will be helpful if you can post your current code.

How can I make a file that can only be read by my application? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I want to know if there's a way to create a file that only my application can read but other programs (eg: notepad) can't
For example:
i create a config file from my application, and if i open it with notepad it will be garbled nonsense, like:
½ÁoLG0%­Ö9)9Ìm•~0ý<öKfƒ”ü9´~<ƒ\,Aëxzºv‡#u}ž¹ñ7µK³¨]fÛn {盞Ժî*Ò\úǃ«E%ñ
x#Â˼†ZÜŸ¹>ÇðÏ•Þ¢dóü0¹ñS`|ÛV‰‡Fëm¬2°,üdVNÆ$å^Rf­¾!v¼ñ
¡ýù´ÿËjC&¤œšÍÉ]ËÈFæTñq%#++ÜÝ[êq"#hbÍj‰Œ‚äd¡†¸<×sæå‘óùOë\2rxy
You're looking for encryption, if you want something readable only to your application but not the end user.
I don't know VB.NET but a quick google search shows me this question which has a pretty well written answer, that seems to explain how to encrypt a file in VB.NET

File Transfer over ip in vb [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
in Visual basic there is a function called file copy
filecopy(source,destination)
is it possible to copy from my computer to another over ip?
ex:
filecopy("C:\User\name\Desktop\test.txt",//192.168.x.x)
if yes what is the correct syntax?
You need to specify the UNC path correctly, for example:
filecopy("C:\User\name\Desktop\test.txt","\\192.168.x.x\c$\User\name\Desktop")
Also it's better to use File.IO.Copy instead of the old VB6 syntax.

Is there a way to save a process and retrieve it after a reboot? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I know that the best way of accomplishing similar tasks is to save intermediate results into a file and restore the state from that file. But out of curiosity, I just wonder whether there is a way to save a process and retrieve it after a reboot. That's all.
Problem solved. I create a dump file of my process and get the address of my variables. Then I extract all the data I need from the file.