I have a series of numbers ranging from four to seven digits that I need to copy individually and have KM transform them into seven digit numbers with leading zeros if their original digits were less than seven, before pasting individually.
For example
Copy 61745 and paste 0061745
Copy 1347890 and paste 1347890
I'm not sure exactly how you need to implement your macro, but here's a routine that takes the number on the clipboard (note that it assumes it's a number; error checking could be easily added), pads it to seven digits, then puts it back on the clipboard, ready for pasting:
Just noticed a minor issue in the macro: Step two should filter the variable local_theNumber with character count (still to local_howLong). It's filtering the clipboard, but I already set the variable based on the clipboard.