Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HI!
Sorry about reposting this but the last thread was so long I thought that maybe it had been missed... I need to check "A" and if there is data in it ensure that there is data in "U" (can be "0" but needs to be filled in so no "" allowed) The rows of data are 9 to 134 Bob gave me an idea that did this but it doesn't enter in the Information entered into the message box into the cell missing the data... And Chandlm gave me an idea that enters the data into the cell but doesn't check "A" so the user would need to check all the rows without data in "U" (both are below if that helps... not sure how to mesh them) Sorry to be such a pain... Greg You can use the following to do what you want. Sub check_values() For Each cell In Range("v9", "v133") If cell.Value = "" Then If MsgBox("No Value in Cell" & cell.Address & " . Is this OK? ", vbYesNo, "Check Value") = vbNo Then cell.Value = InputBox("Please enter value for Cell" & cell.Address, "New Value", 0) End If End If Next End Sub HTH Matt Dim ans For i = 9 To 133 If Not IsEmpty(Cells(i, "A").Value) And IsEmpty(Cells(i, "V")) Then ans = "" Do While ans = "" ans = InputBox("Cell " & Cells(i, "V").Address(False, False) & " needs data, please supply", _ "Data Completion") Loop End If Next i -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
when a "check box" is checked, a "result" to be shown in another c | Excel Discussion (Misc queries) | |||
Check if cells contain the word "Thailand", return "TRUE" | Excel Worksheet Functions | |||
create links to check boxes marked "good" fair"and "bad" | Excel Worksheet Functions | |||
create a "check" macro | Excel Programming | |||
Macro to "Stop Playing" wave files | Excel Programming |