I’m blanking on this. What’s the type of string manipulation called where you include a sequence of escaped units in a string, then follow the string with arguments that get substituted into the string when it’s processed?
i think it looks like this:
foo("xxx %1 yyy %2 zzz %3",arg1,arg2,arg3)
ends up as
foo("xxx arg1 yyy arg2 zzz arg3")
where the values for arg1, arg2, and arg3 have been plugged into those positions in the string.
Whatever it is, I’m trying to figure out how to do it in VBA.
EDIT: It seems it’s called “string formatting” or “composite formatting”. Either way, VBA doesn’t have this feature, as far as i can tell.
Usually it is a
Format()method – which accepts a format string and collection of parameters.In C# it is a static method accessible as