Hi everyone,
I have this code below which works fine. As you can see, when it fires, it always ensures that there is a space 3 spaces from the right. So it would change this postcode/zipcode LE987G into LE9 87G. However what I need it to do is to work off a user defined range rather than a fixed range.
The code immediately below shows the static code for creating the space. The code beneath that shows the subs where the user defines their range.
I hope that makes sense. I'm trying to learn the convention for how a user defined range is passed from one sub to the next, i.e. how can I apply Sub Macro1() to a range that the user has defined. Hope you can help.
Sub that has fixed range (want this to be whatever range the user picks)
The below code shows subs where the user defines their own range. I need the code above appending to the end of this code (using the user defined range)![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Bookmarks