How to Change the Mouse Shape in Access VBA

Written by jaime avelar
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Change the Mouse Shape in Access VBA
Learn how to change the mouse pointer in Access using VBA. (Buena Vista Images/Stockbyte/Getty Images)

Learning how to change the mouse pointer in Microsoft Office Access can make your Access application more user-friendly. Access is a relational database management system often used for small and local databases. Visual Basic for Applications, or VBA, is a computer programming language used to automate routine tasks in Access and in other Microsoft Office applications. In a few steps you can change the mouse pointer to different shapes using VBA.

Skill level:
Moderately Easy

Other People Are Reading

Things you need

  • Microsoft Office Access

Show MoreHide

Instructions

  1. 1

    Start Microsoft Office Access and select "Blank Database," then click "Create." Click "Database Tools" and select "Visual Basic." Click the "Insert" field and select "Module."

  2. 2

    Type the following to create a new subroutine:

    Private Sub changeMousePointer()

    Press "Enter."

  3. 3

    Type the following to change the mouse pointer to an "I Beam":

    Screen.MousePointer = 3

  4. 4

    Type the following to change the mouse pointer to a "Vertical Double Arrow":

    Screen.MousePointer = 7

  5. 5

    Type the following to change the mouse pointer to a "Horizontal Double Arrow":

    Screen.MousePointer = 9

  6. 6

    Type the following to change the mouse pointer to an "Hour Glass":

    Screen.MousePointer = 11

  7. 7

    Type the following to change the mouse pointer to the standard pointer:

    Screen.MousePointer = 1

    Press "F5" to execute the subroutine.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.