So there is already a working macro that does the following:
Whenever I dial/call a number with a prefix other than the ones I specified, a dialog box appears. I wanted to "filter" the numbers so I would be notified if I was to make a call to a number belonging to a different network/company.
To clarify, there are two codes in the prefix. One is the country code and the other is the network code. For instance, country code is +63 and network (company) code is 945. Furthermore, the country code +63 is interchangeable with 0 and both valid are when making a call. So a +63945xxx number is the same as 0945xxx.
My current issue is that 4-digit prefixes (the ones starting with 0 like 0945, 0917, etc) are already "filtered" by the existing macro. However, 6-digit prefixes (the ones starting with +63 like +63945,+63917 are not filtered), hence 0945 and +63945 which are virtually the same will get different responses (One will prompt a dialog box and the other will not). What I am looking for is a way to first convert +63 to 0 so that it becomes a 4-digit number which the macro can filter.
Here is a link to my previous question which can be used as reference.
Make a pop up message if about to call area codes excluding specified
Also attached is the macro that currently filters 4-digit prefixes but overlooks 6-digit ones.
Edit: 8/15/2020 14:10
I started a new macro from scratch just to be sure. But result in log seems to be the same. Examples of numbers called would be +639451234567 and 09451234567. All numbers dialled prompted a dialog box. Here are the screenshots:
(https://i.stack.imgur.com/wksR0.png)
(https://i.stack.imgur.com/FJTtc.png)
(https://i.stack.imgur.com/y9Jqi.png)
(https://i.stack.imgur.com/qnwbm.png)
(https://i.stack.imgur.com/JTS76.png)
(https://i.stack.imgur.com/uBuJ8.png)
Edit: 22:30
Below macro given by beeshyams works well.