web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :

Excel Formatting Features

VJR Profile Picture Posted by VJR 7,635

 

 

Title: Format Excel Range (and make your Excel outputs look good)

 

Short Description:

  • Apply a wide range of formatting features to a single cell or range of cells in a spreadsheet

 

Formatting Features:

1. FILL CELLS WITH COLOR:

  • Fill the Header row or Data rows with any color

 

Sample 1: Header Row

VJR_0-1650274987224.png

 

Sample 2: Header and Data rows

VJR_1-1650275135614.png

 

2. CHANGE FONT COLOR:

  • Apply the font color of your choice to one or more cells

 

Sample 1: Font color of Header row to white

VJR_2-1650275246260.png

 

Sample 2: Font color of Data rows to blue

VJR_3-1650275274399.png

 

3. ALTERNATE ROW SHADING:

  • Set alternate rows as per the color of your choice
  • The number of rows to be alternate is configurable. Can be 1, 2 or any number

Sample 1: Light Aqua alternate rows

VJR_4-1650275348200.png

 

Sample 2: Gray alternate rows

VJR_5-1650275379644.png

 

4. HORIZONTAL ALIGNMENT:

  • Set horizontal alignment of text in one or more cells
  • Alignment options available:
    • Left
    • Center
    • Right

 

Sample:

 

VJR_6-1650275473812.png

 

 

5. APPLY BORDERS:

  • Apply borders to cells with color, weight and style
  • Options available:
    • STYLE: Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot, LineStyleNone
    • WEIGHT:  Hairline, Medium, Thin, Thick
    • COLOR: any specified color

 

Sample: Dash style, Medium thickness and Red colored border

VJR_7-1650275554102.png

 

 

6. APPLY A NUMBER FORMAT:

  • Apply any of the available format code to the cells (decimals, currency, percent, date formats, etc)
  • Either from the list of existing categories (left) or a Custom category (right)

VJR_8-1650275601168.png

 

 

Sample:

VJR_9-1650275640288.png

 

 

7. AUTOFIT CELLS:

  • Auto adjust height of all rows and width of all columns to get a best fit

Sample:

VJR_10-1650275729851.png

 

 

8. TURN OFF GRID LINES:

  • Removes the default Excel gridlines

Sample:     

VJR_11-1650275803347.png

 

9. CLEAR CONTENTS:

  • Clears formulas and values without clearing cell formatting and conditional formatting

Sample:

VJR_12-1650275866303.png

 

 

10. CLEAR:

  • Clears cell values, formatting and formulas

Sample:

VJR_13-1650275931600.png

 

 

11, 12, 13. FONT BOLD, UNDERLINE, ITALIC:

  • Three different functions to set the font to bold, underline and italicize

Sample:

VJR_0-1652679059051.png

 

 

14. CHANGE FONT SIZE:

  • Change the font size to a new number

Sample:

VJR_2-1652679334689.png

 

 

15. CHANGE FONT NAME:

  • Change the font to a new name

Sample:

VJR_4-1652679530266.png

 

 

 

 

 

Attachments:

  1. Main.txt: Copy the contents of this file and paste it into the editor of the Main flow
  1. FormatExcelRange.txt: Copy the contents of this file and paste it into a Subflow by giving it a name as FormatExcelRange. Ensure to give the right name, spelling and case
  1. ReadMe.txt: Copy the contents of this file and paste it into a Subflow by giving it a name as ReadMe. Ensure to give the right name, spelling and case
  1. In the end you will have a Main Flow and Subflows as below

        VJR_14-1650276006329.png

     5. The Sales Records.xlsx Excel sample used in the above screenshots is available in the attachments.

 

 

Some key notes:

  • This Flow was built in PAD version 2.18. It is recommended to first run these formatting features in a sample dummy process to avoid any version compatibility issues. Also take a backup of your Excel before applying any formatting feature(s).
  • To start with: Simply change the ExcelFilePath and run the sample process. Once everything looks fine make changes by adding/removing as required.
  • General exception handling is done wherever possible. You can add your own detailed exception handling as necessary.
  • The Main page code looks long because I have shown how to call/use every single formatting feature. You just need to use only the one(s) you need.
  • Refer the ReadMe tab inside the Subflow. Also read the comments on the Main Flow.
  • Please send me a private message if you are facing any issues.

 

 

Categories:

Desktop flows

Comments