Mega Code Archive

 
Categories / VisualBasic Script / Excel
 

Displays a message box that shows the value in cell A1 on Sheet1

Sub valueDemo()     MsgBox Worksheets("Sheet1").range("A1").value End Sub