I'm doing some coding in VBA and am pretty new to it all. I would like to send an email using the information stored in a 2D array. Currently, I just send:
Mr ABCD: 123456
Mr EFGHIJ: 789101112
etc...
where Array(0,0) = Mr ABCD, Array(0,1) = 123456, and it's quite ugly given the poor formatting. I would like to make it look slightly more readable, firstly by ensuring that all numeric values are at the same offset, i.e:
Mr ABCD: 123456
Mr EFGHIJ: 789101112
etc...
I have tried simply buffering each name string with a suitable amount of spaces, however the default font does not have equivalently sized characters, so each string may be the same length but not the same size.
So, is there any way to set the string object to have a default font of Courier for example, to ensure all characters are the same size? Preferably this would be done without copying the array into a spreadsheet.
Another question is how would I best craft this into an email that has the same grid format as a spreadsheet, where each grid is of uniform size? Once again, preferably without copying into a spreadsheet. Thank you!