Add Zeros Wizard

This adds zeros or any other characters to the given content of each cell in the active selection or a selection you specify.

 

XLplus Add Zeros: Dialog

 

You can add data in front, within or at the end of the the cell content. Data to add can be of any type: strings or parts of a formula.

By default, the Wizard will add leading zeros in front of the cell content and create a 6 digit long string. In case the original cell content was shorter than 6 digits, it will be filled (from the left side) with as many zeros as required to create a 6 digit long string. Exactly that had been the original purpose of this tool. Over the time, more functionality was added to it. Now, you can add everything to the given content and even to a function.

In case (leading) Zeros or something else than the default zeros were added, a string as long as specified in Overall Length will be created showing the added information at the position specified (Before, After or in between).

In case the cell content does get longer than specified within Overall Length, the string will be truncated either from the left or the right side, depending on the position specified in Add Where. In case data was added Before the existing cell content, the string will be truncated from the left, otherwise from the right side (After). Placing data in the middle of a given content will always truncate from the left side.

By default, the tool will work with values of a cell or range. Alternatively, you can add content to a function within a given range, adjusting it to calculate something new. This added flexibility makes the tool more complex to handle but it is still easy to use - just read on.

Expand Add What:
Expand Overall Length:
Expand Add Where:
Expand Area to Add:
 

Note: If adding to Value, the tool will not apply a style, building leading zeros, to the selected cell(s) but assign the cell-format "Text" to the selection and add real zeros. If Skip Empty Cells has been selected as well, all empty cells wthin the selection will get this style as well.

In case the sheet is protected, no styles can be assigned to its cells - the macro will show a warning message and stop. Unprotect the sheet first.

In case adding to Function has been set and the resulting function is erreneous, the tool will stop with a warning message. Afterwards the faulty function result will be shown. You have to create a correct function by your addings in order to amend the existing function successfully.

Run Save to permanently save changed settings. By default, the Add Zeros Wizard will start with its default settings. Once any changes were saved, it will always use the saved settings.

To set the Wizard back to its default settings, run Default and afterwards Save.

 

For details about saving see Save Changes within XLplus.

For details about using the RefEdit Control see RefEdit Control Element.

  

 

 

 

 

Social Networks

Twitter Facebook studiVZ meinVZ schülerVZ MySpace deli.cio.us Google Bookmarks Mister Wong StumbleUpon Windows Live Yahoo! Bookmarks