Hi. I am very, very new to this - please help!
I am using this code to help create a fixed-length record I can send to the mainframe from an Excel spreadsheet. In one column, some results are positive, are negative. I am formatting the positive value like this:
MyStr = MyStr & Format(Cells(MyRow, 11).Value, "00000000000000000000")
When the value is negative, I want the format to be different - i.e. I want to align the right-most byte of both the positive and negative values.
Like this:
00000000000000000123
-0000000000000000456
Not like this:
00000000000000000123
-00000000000000000456
Would you please show me how???
Thank you - warm regards,
Paul
I am using this code to help create a fixed-length record I can send to the mainframe from an Excel spreadsheet. In one column, some results are positive, are negative. I am formatting the positive value like this:
MyStr = MyStr & Format(Cells(MyRow, 11).Value, "00000000000000000000")
When the value is negative, I want the format to be different - i.e. I want to align the right-most byte of both the positive and negative values.
Like this:
00000000000000000123
-0000000000000000456
Not like this:
00000000000000000123
-00000000000000000456
Would you please show me how???
Thank you - warm regards,
Paul