Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I get the following error when i execute this code Private Sub CommandButton1_Click() Dim Rng As Range Dim Rng2 As Range Set Rng = Worksheets("Cert_Path_module").Range("Module_2") '<<=== CHANGE On Error Resume Next Set Rng2 = Rng.SpecialCells(xlCellTypeBlanks) On Error GoTo 0 If Not Rng2 Is Nothing Then MsgBox Prompt:="All of the fields " _ & "Module 2 information" _ & " should be filled.", _ Buttons:=vbInformation, _ Title:="Missing Data" Rng2.Cells(1).Select <===============Error msg "Run-time error '1004' Application-defined or object-defined error" Exit Sub End If Me.Next.Select End Sub What modifications should me made in this code?? Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Command Button Error - Help Needed Urgently Please | Excel Worksheet Functions | |||
Error When Assigning a Macro to a Command Button | Excel Programming | |||
Automation Error when deleting command bar button | Excel Programming | |||
Command Button run-time error | Excel Programming | |||
Run-time error on command button | Excel Programming |