Return to data entry

giles

Board Regular
Joined
Oct 28, 2006
Messages
77
A big thanks in advance, I have set up a worksheet to collect data and used validation to control the type of data allowed to be entered. I have a problem with some required data not being entered by staff. I have set up "Missing Data" script which actions a message box and it works when tested, what I can't work out is how do I have the script stop and return back to the worksheet for the fields to be entered. The segment of the script is below.

'Check all required data is entered
Dim MissingData As Integer
MissingData = Worksheets("Template").Range("O7").Value (This is a if(isblank(A1,1,0)) formula)

If MissingData <> 0 Then

MsgBox "There is missing required data. Please complete all * fields”"
Application.Goto Reference:=Worksheets("Template").Range("C2") (This doesn't work.)
Else
End If Else
End If

Hope this makes sense.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top