Wednesday, 16 August 2017

Power Point ShortCuts

POWERPOINT 

ActionKeystroke
Document actions
Open a presentationCTRL+O
New presentationCTRL+N
Save AsF12
SaveCTRL+S
PrintCTRL+P
HelpF1
Presentation actions
Begin slide showF5
Next slideENTER or
Down arrow key
Previous slideBACKSPACE or
Up arrow key
Activate pen toolCTRL+P
Erase pen strokesE
Deactivate pen toolCTRL+A
Show/Hide black screenB
Show/Hide white screenW
Show/Hide pointer & buttonA
End slide showESC

ActionKeystroke
Formatting
Select allCTRL+A
CopyCTRL+C
CutCTRL+X
PasteCTRL+V
UndoCTRL+Z
RedoCTRL+Y
BoldCTRL+B
ItalicsCTRL+I
UnderlineCTRL+U
Left justifiedCTRL+L
Center justifiedCTRL+E
Right justifiedCTRL+R
Promote list itemALT+SHIFT+Left arrow
Demote list itemALT+SHIFT+Right arrow or TAB
Editing
FindCTRL+F
ReplaceCTRL+H
Insert hyperlinkCTRL+K
New slideCTRL+M
Spell checkerF7
MacrosALT+F8

Run the slide show and press the F1 key to view all keyboard shortcuts applicable when running a slide show.

Tuesday, 28 March 2017

MS Access ShortCuts

ACCESS

Action
Keystroke
Database actions
Open existing database
CTRL+O
Open a new database
CTRL+N
Save
CTRL+S
Save record
SHIFT+ENTER
Print
CTRL+P
Display database window
F11
Find and Replace
CTRL+F
Copy
CTRL+C
Cut
CTRL+X
Paste
CTRL+V
Undo
CTRL+Z
Help
F1
Toggle between Form and Design view
F5
Other
Insert line break in a memo field
CTRL+ENTER
Insert current date
CTRL+;
Insert current time
CTRL+:
Copy data from previous record
CTRL+'
Add a record
CTRL++
Delete a record
CTRL+-

Action
Keystroke
Editing
Select all
CTRL+A
Copy
CTRL+C
Cut
CTRL+X
Paste
CTRL+V
Undo
CTRL+Z
Redo
CTRL+Y
Find
CTRL+F
Replace
CTRL+H
Spell checker
F7
Toggle between Edit mode and Navigation mode
F2
Open window for editing large content fields
SHIFT+F2
Switch from current field to current record
ESC
Navigating Through a datasheet
Next field
TAB
Previous field
SHIFT+TAB
First field of record
HOME
Last field of record
END
Next record
DOWN ARROW
Previous record
UP ARROW
First field of first record
CTRL+HOME
Last field of last record
CTRL+END


Monday, 13 February 2017

Find the total number of sheets in an Excel Workbook


VBA Code to Get the count of all sheets in an Excel Workbook

Sometime I come across with Excel reports with numerous worksheets / tabs.

Sometimes you can't find the starting or ending of the workbook.

Whenever I see those kind of Excel reports, I always wonder how many sheets will be there in that workbook !

Of Course, You can count the Excel sheets one by one. Select one sheet, then press CTRL + Tab to goto next sheet, keep on counting in your head. :) Very good time pass.

Excel is not providing a way to find how many worksheets are existing in a workbook.

If you want to know the count of all sheets in an Excel workbook, we have an easy way.

Steps:
  1. Goto VBE, by pressing ALT + F11 or Click on VisualBasic Icon from the Develepor Tab.
  2. Activate Immediate window by Pressing CTRL + G
  3. ?activeworkbook.Sheets.Count   Copy paste the highlighted VBA code to immediate window and press Enter
  4. You can see the count of the sheets in the active Excel workbook has printed just below the code which you have entered.

    msgbox activeworkbook.Sheets.Count If you use this code, a message box will be shown with count of sheets in the workbook.

This code becomes very important when you write VBA routines and loops.

Wednesday, 27 April 2016

How To Check If Outlook Application is open by using VBA code / Outlook Open ?

When you play around with outlook macros to send mails, get mail data, etc, You will face an issue whether the end user has not opened the outlook.

If the outlook is not open when you run the code, you cannot get the desired results and your code will stop.

I made a simple code to check if the outlook is open while you run the code.

This can be used from Both Excel or Acces.


Sub CheckOutlookIsOpen()
    Dim oOutlook As Object
    On Error Resume Next
    Set oOutlook = GetObject(, "Outlook.Application")
    On Error GoTo 0
    If oOutlook Is Nothing Then
        MsgBox "Error : Outlook is not open! This cannot be run without opening outlook", vbCritical, "Error"
        End
    End If
End Sub

Saturday, 11 July 2015

How to change the module name in VBA / Edit Module Name In VBA


You might have noticed that when you create a module, VBA allocates a default name (Module1, Module2, so on).

It would be a professional look to your code if you change the module names as per the code inside.

We can change the default name of a module by following very simple steps below.


See the steps in a short video below :



Steps

1. Open your project in VBE (ALT + F11)

2. Select the Module from your project explorer.

3. You can see the Name property of the selected module in the properties panel.

4. Edit the name and give the name as you wish.


Notes :

-:- If project Explorer not visible, press CTRL + R

-:- If properties window is not visible, press F4 to make it visible.

-:- The naming criteria is subject to VBA's naming parameters.