Hello all, I am a practicing VBA'er but this one is really tricky for me.
I have a set of weights that may range from .01 lb all the way to 1.5 lbs lbs all with different decimal points..
Example:
Before__________After
0.1845 becomes 001845
1.054 becomes 010540
1.16 becomes 011600
1.116 becomes 011160
0.278 becomes 002780
0.91 becomes 009100
What I am trying to do with this list is remove the decimal and have the results end up padding with zeros to make a fixed length of 6 char and where the decimal is always implied between the 2nd and 3rd char, so I have to left pad and right pad with zeros to make all output 6 characters.
Thank you so much in advance!!
I have a set of weights that may range from .01 lb all the way to 1.5 lbs lbs all with different decimal points..
Example:
Before__________After
0.1845 becomes 001845
1.054 becomes 010540
1.16 becomes 011600
1.116 becomes 011160
0.278 becomes 002780
0.91 becomes 009100
What I am trying to do with this list is remove the decimal and have the results end up padding with zeros to make a fixed length of 6 char and where the decimal is always implied between the 2nd and 3rd char, so I have to left pad and right pad with zeros to make all output 6 characters.
Thank you so much in advance!!