Dzony
06-08-2016, 04:24 AM
Hi, I’m just starting my adventure withprogramming and VBA and now I have small problem.
I try to make a tool to repair documents, and I assumed that files can becorrupted also by having improper extension (done purposely or not),So Ithought I need to find origin extension to repair this. If extension is changedby user by hand, or through opening by improper program, then in my opinion somewherein code should be a sign of extension the file will work properly with. Example: first was “doc” file , then somebody changed to xls manuallyso file doesn’t open. I need to find extension that will work – as it was “doc”at the beginning. I don’t know if it’s possible… I thought that if I open filein notepad there is some kind of code in it, and probably part of code may be“origin” extension, but which part? Or is there some other way I could use inVBA? I will be grateful for your response.
I try to make a tool to repair documents, and I assumed that files can becorrupted also by having improper extension (done purposely or not),So Ithought I need to find origin extension to repair this. If extension is changedby user by hand, or through opening by improper program, then in my opinion somewherein code should be a sign of extension the file will work properly with. Example: first was “doc” file , then somebody changed to xls manuallyso file doesn’t open. I need to find extension that will work – as it was “doc”at the beginning. I don’t know if it’s possible… I thought that if I open filein notepad there is some kind of code in it, and probably part of code may be“origin” extension, but which part? Or is there some other way I could use inVBA? I will be grateful for your response.