#1
|
|||
|
|||
Create a dialog to combine several replacing process
Hi all. I currently have many replacing methods done by the wild card. And I'm thinking whether it's possible to make a "summary" macro that can provide a dialog with several checkboxes where I can choose different combinations of the replacing methods and do them at once. I know the replacing can be recorded as macro, you can invoke macros within another macro, and checkboxes work on UserForms. But before I get any further, is it the correct way? Thank you.
|
#2
|
||||
|
||||
You've started multiple threads lately on what appear to be closely related issues. Perhaps you could explain what it is you're trying to achieve, rather than serving it up piecemeal in different threads that don't give an overall context.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Sorry for shooting out questions. I'm doing some text processing on various documents and I kind of want to develop a tool rather than find a solution to a specific project. Basically, I will always do a subset of several certain replacing and I want to summarize them in a userform by checkbox, such that they're easier to use when I process different documents with different issues.
|
#4
|
|||
|
|||
Now I have made a userform with some help from several tutorials and it works fine. Yet, one issue is that all the options can only perform one at a time rather than a combination. From a tutorial, I know that I can write all the combinations with "IF" and subsequent commands. But if I have lots of options, I will write tons of combinations. Is there a way to get around of this problem?
|
#5
|
||||
|
||||
You could employ a userform, with selectable options. See attached.
Note: the 3rd option runs the F/R code from https://www.msofficeforums.com/word-...er-number.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
||||
|
||||
You might find http://www.gmayor.com/document_batch_processes.htm useful as it provides assorted replacement functions, including from a list of replacement items.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#7
|
|||
|
|||
Quote:
If I have 5 checkboxes as a group, I will have to code for C(5,5)+C(5,4)+C(5,3)+C(5,2)+C(5,1)+C(5,0)=1+5+10+1 0+5+1=32 conditions. Is there a way to overpass this issue? |
#8
|
||||
|
||||
You're overcomplicating things. Simply let the code call the corresponding subs in order. As shown in the demo I posted, you can check any combination of the available options and whichever ones you've checked will be run in order.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PMI process groups with MS Project | Kotor | Project | 3 | 03-12-2016 11:52 AM |
Process Automation | saurabhlotankar | Excel Programming | 10 | 06-03-2015 05:50 PM |
Outlook process not closing | Alan.bailey | Outlook | 2 | 02-12-2015 08:56 AM |
Configuration Process dialog box repeatedly appears | Colonel Biggs | Office | 4 | 12-09-2011 02:16 PM |
Configuration process problem | Dunn2009 | Outlook | 0 | 10-02-2009 02:38 AM |