Pam Field Wrote:
> Hi there,
>
[quoted text clipped - 45 lines]
> Regards
> Pam
Hi Pam,
Try changing the following line:
MsgBox "Are you sure you want to remove this child?", vbYesNo
to this:
ans = MsgBox "Are you sure you want to remove this child?", vbYesNo
I think that should fix your problems. (You just need to assign th
return value to your variable in order to be able to use it)
Scot
Pam Field - 22 Jul 2006 05:26 GMT
Thanks Scott,
Unfortunately that give me a 'syntax error' but your response has reminded
me that I don't have an actual ans= statement and I know I must have but
what and where? I'm getting way to old to learn this stuff!
Any other assistance would be greatly appreciated.
cheers
Pam
> Hi Pam,
>
[quoted text clipped - 8 lines]
>
> Scott
JON JON - 22 Jul 2006 06:03 GMT
Hello,
Try this code
ans = MsgBox ("Are you sure you want to remove this child?",
vbYesNo+vbExclamation)
> Thanks Scott,
>
[quoted text clipped - 19 lines]
>>
>> Scott
Pam Field - 22 Jul 2006 06:02 GMT
Ok I've changed the variable to YesNo (found it on some website) and that
works now I just have some tidying up to do. Hope nobody minds if I come
back with more questions on this one :-)
YesNo = MsgBox("Are you sure you want to remove this child?",
vbYesNo + vbExclamation, "Caution")
Select Case YesNo
Case vbYes
Selection.Delete Shift:=xlUp
Range("A6").Select
Case vbNo
frmRemChild.Show
End Select