Just wondering, is there any equivalent in VBA to VB .NET\'s PadLeft and PadRight methods?
As of right now, whenever I want to take a string and make it a fixed leng
I solved the problem by reassigning variable. In my code I get data from workbook cell and limit it to 5 char (if necessary fill with enough 0..):
MB = Right(String(5, "0") & Worksheets("HOME").Range("b3"), 5) MB = Right(MB, 5)