Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks! This works perfectly!
"Rick Rothstein" wrote: If it is NEVER possible for the entry to be longer than 18 characters (that is, will NEVER overflow the field), then... FilledOutField = Format(TheEntry, "!" & String(18, "@")) If it is possible for your entry to overflow the field, then it depends on which part of the entry you want to keep. If that would be the last 18 characters, then use the above code. If that would be the first 18 characters, then use this instead.... FilledOutField = Format(Left(TheEntry, 18), "!" & String(18, "@")) -- Rick (MVP - Excel) "David Langschied" wrote in message ... I am completing a requirement for a bank upload of account transactions. There is a requirement that the upload contain blanks to the right to fill a required field. I am struggling to figure out how to do this. Example: If the field is 18 characters long and the entry is 10 characters long, then they want the remaining characters expressed as blanks to the right. So, HowdyDoody would be "HowdyDoody " Any ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Fill in the blanks! | Excel Programming | |||
Fill in the blanks! | Excel Programming | |||
Fill in the blanks!! | Excel Programming | |||
Fill in the blanks | Excel Programming | |||
Fill in the blanks | Excel Programming |