Looking for Macro to iterate new document filename, for example my recorded macro creates a new document with title "Document" but I need to number the project based on the previous number. N=0, Document(N+1). I am new to the corel macro environment and willing to do the work just need some insights on where to start since I am not familiar with corel programming, it seems similar to excel.
My thought process initially was to store a value in a global variable and call that variable every time my macro runs. Then I could run another macro which resets the variable when needed. Lets say I have 10 Reports and each has anywhere from 10-100 documents. My "Report" would get its own folder and each document created in corel would get saved into its corresponding folder numbered. After the report is finished I would reset my counter and start the next report in a saved in new folder.
Creating an Automatic Number field every opening or printing? - CorelDRAW Graphics Suite X8 - CorelDRAW Graphics Suite X8 - CorelDRAW Community
Look like this?
I'm thinking now I need a command button which stores the number of times the button is pressed (N), opens a new doc with .Name = "Document" & N. Then when it is time to reset the counter press another command button or close out Corel, not sure how the counter would be stored within Corel
basically is the same logic, exists many ways to persist data from your counter, one choose is use the "RegisterUserApplicationPreference" and "GetApplicationPreferenceValue"