Hi there!
This software is the way for me to achieve the results I need.
Unfortunately, the more I read about macros in this forum the less I understand. (I've definitively lost a part of my mind here .)
Any help required, thank you in advance for that.
My needs:
NOTES:
This software is the way for me to achieve the results I need.
Unfortunately, the more I read about macros in this forum the less I understand. (I've definitively lost a part of my mind here .)
Any help required, thank you in advance for that.
My needs:
- OPEN an existing file (same name, same path all the time - it is a template).
- GET a string from the user (var NEWSTRING).
- FIND each occurrence of the string "toto" in the file and REPLACE it with the variable entered in point 2 (NEWSTRING).
- IDENTIFY "blocks" of text in the page. (I've separated blocks by starting each one by a subsequent number which means that: 1 to 2 is the first block, 2 to 3 is the second block, 3 to 4 the 4th, etc.) I can edit and change that easily with any other method as you wish.
- CREATE a different new file with each block of text.
- CREATE a folder in the same path as the original file with name "var:NEWSTRING".
- NAME each new file "var:NEWSTRING" with an incremental value ( -1,-2,-3,..), in HTML format, in the folder newly created.
- CLOSE original file without saving any modification.
- Open the file //XYZ/Desktop/Files/Template.html
- Ask the user for the new string, i.e. I will hack this macro!
- Find "toto" in the whole text and replace it with the value of the new string.
- Cut the document in several blocks.
- Paste each block into a new different file.
- Create a new folder with the name of the variable given in pt 2 in the same path as the original file.
- Save each new file with the filename "I will hack this macro! -X.html".
- DISCARD any modification in the original file and close it without saving.
NOTES:
- I use the HTML format only for the convenience of another app that I will then use to act upon the newly generated files. There is only text in those files.
- There is no other number in the whole original file than the separators and they are not meant to appear anywhere in the new files. (They act only as separators in the original one.)