Showing posts with label MS Office. Show all posts
Showing posts with label MS Office. Show all posts

Monday, 6 June 2016

Excel : How to use Icon styles with data ?

Example
20
30
50
70


  • Go to Conditional formatting > Icon sets > More rules...
  • In dialog box, set the Icon style and Value ranges for different icons.









You can add more than one rules, after adding first rule :

  • Go to Conditional formatting > Icon sets > Manage rules...
  • Add / Modify / Delete rules

Sunday, 5 June 2016

Excel : How to use Data bars ?


Example data
30

Go to Conditional formatting > Data Bars > More rules...
In dialog box, set Type = Numeric and Values min = 1 and max = 100





Excel : How to make Radar chart ?


Pre-requisites 
There must be multiple headings (more than 2) and their values (numeric or percent type)

Example data
A
10.00%
B
20.00%
C
30.00%

Go to Insert > Chart > Other charts > Radar














Radar chart only gives proper view when there are more than 2 items.

Try other chart formatting options using Chart tools bar.

Thursday, 5 May 2016

MS Visio : How to create Organization charts ?


Organization charts
  • Flow of authority and responsibility
  • shows manager relationship, reporting, inter-department links


Use Organization Chart template in MS Visio to create Organization charts


Adding shapes to chart
  • Drag “Executive” shape
  • Drag “Multiple shapes” over the executive
    • Add 4 managers
  • Drag “Multiple shapes” over first manager
    • Add 2 positions
  • Drag “Multiple shapes” over third manager
    • Add 2 positions





System charts vs. Flow charts


Flowcharts are easy to understand diagrams that show how steps in a process fit together.
The purpose of flowcharting is to minimize the complexity of following a method or process.

TYPES OF FLOW CHARTS

1. System charts
  • An overview / No details
  • Few steps
  • presents a top-down view


2. Flow diagrams
  • Individual areas of details expanded
  • System charts can have references to flow diagrams


What are the features of MS Visio ?


MS Visio features

  • Professional appearance
  • Fluent interface – Find commands faster and easier (Ribbons)
  • Easy publish to sharepoint 
    • Diagrams from sharepoint can be viewed in browser
    • Collaborative comments (Multiple R/W of comments)
    • Directly open and manipulate files stored in sharepoint
  • Change shape (Replace one with another)
  • Easy page duplicate (2 clicks)
  • Enhanced templates and shape search
  • Organization charts with photo
  • Mini toolbar – Drawing, Connectors, Change shape, Style, and Alignments
  • UML templates conforms to UML v2.4


* Blue ones are available only in Professional edition.


Visio 2010 features available in different versions


























MS Visio : How to make Swim lane diagrams ?


Use "Cross-Functional Flowchart" to make Swim lane diagrams.

You can insert a Swimlane shape in between of two other then arrange the shapes in different Swimlanes.




MS Visio : How to work with pages and tabs ?



Page navigation
  • Click on page nameOR
  • Press Ctrl+PgDn or Ctrl+PgUp


Rename page

  • Double click on page name


Zoom slider









Ctrl + Mouse scroll


Zoom options













Page setup

Page Orientation
  • Design tab > Orientation button > Portrait or Landscape


Auto Size
  • Turned on by default.
  • Page expands if you add or move content beyond the current page boundaries.


Page setup
  • Auto sizeOR
  • Select the size















Print preview
  • See how a page will look before you print it.
  • Add headers and/or footers



Background page









Create Background or Watermark page similar to normal page.

Apply Background page to another page
  - Only 1 background page per page is possible
  • File > Page Setup > Page properties
  • In the background list, choose background list

MS Visio : How to work with shapes and text ?


Working with shapes

Shape Windows

  • Shapes window contains stencils for : 
    • More Shapes
    • Quick Shapes
    • Basic Flowchart Shapes
    • Cross Functional Flowchart Shapes


























Add additional shapes 

  • More Shapes from major categories


To remove stencil from Shapes window

  • Right click the stencil and Close


To float a stencil

  • Right clicking the stencil and Float and drag to another part of the screen.
  • Drag back to Shape window to restore



When you create a drawing based on a template, only the stencils associated with the template are shown by default.

Adding shapes to drawing area















Resize, Scaling and Moving

  • Same as MS Office











Duplicate shapes

  • Hold ctrl and drag the shape











Select multiple objects

  • Hold shift and select shape











Drawing tools
























  Compound line - with line and curve


Auto Connect
Connect shapes as you add them.




This feature can be turned-on from View tab.

Manually Connect
Use Connector tool


Auto Align














 



Working with Text blocks

Text in Visio is contained in a text block.
Editing and formatting is same as MS Office.

Add text to shapes














Rotate text









MS Visio : What are basic file types ?


1.Stencils (.vss)
Collection of shapes either predetermined by the template that you choose, or 
chosen from custom stencil.
2.Drawings (.vsd)
Default extension for every Visio drawing. 
Contains stencils, pictures, formatting etc.


3.Templates (.vst)
Reusable drawings

Friday, 22 April 2016

Excel Macros : How to add GUI controls and VBScript code ?


Add GUI control
1. Enable Developer menu
  • Right click anywhere in toolbar, and click customize this Ribbon...
  • In main tabs, select developer and click OK
2. In developer menu,
  • Click icon Design Mode
  • Click Insert - GUI control (like, button)
3. Draw the GUI control on the sheet.
4. Right click on button, choose Assign Macro... and click on New button.
5. Write VBScript code to perform any action for the new function
Sub calculateSum()
   . . . . .
End Sub
WRITING MACRO CODE
COPY DATA FROM ONE CELL TO OTHER
Cells(RowIdx, ColIdx).Value = Cells(RowIdx, ColIdx).Value
Cells(2, 3).Value = Cells(2, 6).Value

GET CELL VALUE TO STRING VAR
Dim Name As String
Name = Cells(2, 3).Value

REPLACE STRINGS
Name = Replace(Name, "SE", "Software Engineer")
' Replace New line with space
Name = Replace(Name, vbLf, " ") 


COUNT NUMBER OF SHEETS IN THE WORKBOOK
Dim sheetCount As Integer
sheetCount = ActiveWorkbook.Worksheets.Count

GET THE SHEET NAME
sheetName = ActiveWorkbook.Worksheets(sheetIdx).Name
' sheetIdx starts with 1 and goes till n

COUNT TOTAL ROWS USED (WITH DATA) IN A SHEET
Dim EndRow As Long
With ActiveWorkbook.Worksheets(sheetIdx).UsedRange
   EndRow = .Cells(.Cells.Count).Row
End With

GET DATA FROM ANY CELL OF ANY SHEET
Data_Name = ActiveWorkbook.Worksheets(sheetIdx).Cells(RowIdx, ColIdx)

TRIM THE STRING
Data_Name = Trim(Data_Name)

DISPLAY MESSAGE BOX
MsgBox "Sheet : " & sheetName


GET SHEET NAME AND DATA (CANDIDATE NAMES) FROM ALL SHEETS
Assuming, Candidate Name column is 4th on each sheet.
Dim sheetCount As Integer
Dim EndRow As Long
ColIdx_Name = 4
sheetCount = ActiveWorkbook.Worksheets.Count

For sheetIdx = 1 To sheetCount
    sheetName = ActiveWorkbook.Worksheets(sheetIdx).Name
    With ActiveWorkbook.Worksheets(sheetIdx).UsedRange
             EndRow = .Cells(.Cells.Count).Row
     End With
     For RowIdx = 2 To EndRow
   Data_Name = Trim(ActiveWorkbook.Worksheets(sheetIdx).Cells(RowIdx, ColIdx_Name))
     Next RowIdx
Next sheetIdx


CREATING / USING FUNCTIONS
' Assign macro to Button1
Sub button_Export_Name_click()
  exportData columnIdx:=2, FileExt:=".txt"
End Sub

' Assign macro to Button2
Sub button_Export_Dept_click()
   exportData columnIdx:=4, FileExt:=".txt"
End Sub

' Common function called by both the buttons
Public Sub exportData(columnIdx As Integer, FileExt As String)
   . . .
End Sub


FILE AND FOLDER OPERATIONS
Set objFSO = CreateObject("Scripting.FileSystemObject")

' Check if a folder (location = parellel to the workbook) exists ; if not, create it
strFolder = ThisWorkbook.Path & "\exportedKeyFiles"
If objFSO.FolderExists(strFolder) = False Then
    objFSO.CreateFolder strFolder
End If


' Remove file if already exist
FName = strFolder & "\projectConfig.txt"
If objFSO.fileExists(FName) Then
    objFSO.DeleteFile (FName)
End If

' Open a text file for Write with append
Open FName For Append Access Write As #FNum

' Write to text file
line = "Hello this is first line" & vbCrLf
Print #FNum, line


How to turn off Auto-Hyperlinking in Excel ?


Turn off the Auto-Hyperlinking

Go to File - Options
Select "Proofing" and click on "Autocorrect options..." buttons.
Go to tab "AutoFormat as you type"
Uncheck "Internet and Network paths with hyperlinks" check box
Click OK twice and return to excel.