You are on page 1of 3

Checking for an Entry in a Cell Displaying Letter Grades Ceiling Floor

Input values missing B 25 15

75

Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim sUserName As String Dim sPrompt As String Dim sTitle As String Dim sDefault As String sPrompt = "Please check your name and make any corrections" sTitle = "Name Entry" sDefault = "John Doe" sUserName = InputBox(sPrompt, sTitle, sDefault) X = Windows.Count Application.ActivePrinter = "HP Glossy Paper"

Getting User Input in a Dialog Box Determining How Many Windows are Open Controlling the Printer in a Macro

You might also like