Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a form and it keeps on overwriting values with
blanks if nothing is entered. I would like to stop this if the textbox on the form is blank then do not try to write anything at all whether destination cell is blank or already has a value. Also if there is some information already there is it possible to get a message box for each textbox stating "A already has a value! would you like to replace x with y?" This would be great if I can. Anyone know how? Thank you! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why not add a If function saying that if the textbox is empty then do
nothing and if it contains something overwrite? I would add something along the lines of message = "A already has a value! would you like to replace " + x " with " y "?" then msgbox message. Hope this helps Michael "Form problem!" wrote in message ... I have a form and it keeps on overwriting values with blanks if nothing is entered. I would like to stop this if the textbox on the form is blank then do not try to write anything at all whether destination cell is blank or already has a value. Also if there is some information already there is it possible to get a message box for each textbox stating "A already has a value! would you like to replace x with y?" This would be great if I can. Anyone know how? Thank you! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have been writing my code like this -
Set Rng = shData.Range("I" & Application.Match(CLng (sh.Range("D6")), shData.Range("B:B"), 0)) Rng.Value = sh.Range("D8").Text but now have tried it like this as you said to but it gives me an error. If sh.Range("D8") Is Null Then End Else Set Rng = shData.Range("E" & Application.Match(CLng (sh.Range("D6")), shData.Range("B:B"), 0)) Rng.Value = sh.Range("D8").Text End If What do I need to add? And how do you set up a msgbox replace x with y. Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() wrote in message ... I have been writing my code like this - Set Rng = shData.Range("I" & Application.Match(CLng (sh.Range("D6")), shData.Range("B:B"), 0)) Rng.Value = sh.Range("D8").Text but now have tried it like this as you said to but it gives me an error. If sh.Range("D8") Is Null Then End Else Set Rng = shData.Range("E" & Application.Match(CLng (sh.Range("D6")), shData.Range("B:B"), 0)) Rng.Value = sh.Range("D8").Text End If What do I need to add? And how do you set up a msgbox replace x with y. Thanks Hi, i'm only a noob, ask one of these boffins :-) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I create a locked form to fill in the blanks | Excel Discussion (Misc queries) | |||
Writing a story in Excel with fill in blanks that reference pictur | Excel Discussion (Misc queries) | |||
Fill in Blanks for 1099-Div Summary Form, Office 2003 | Excel Worksheet Functions | |||
scanning form and filling in blanks | Excel Discussion (Misc queries) | |||
Paste Special Skip Blanks not skipping blanks, but overwriting... | Excel Discussion (Misc queries) |