Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
help with code
hi I have this part of a code:
If IsError(.Cells(Lrow, "E").Value) Then ElseIf .Cells(Lrow, "E").Value = "2" And _ .Cells(Lrow, "G").Value < 0 Then .Rows(Lrow).Delete but instead of having value "2" i'd prefer to have a box pop up that askes me for this value each time, something like this I guess: Dim V As Variant V = Application.InputBox(prompt:="Enter number of month.", Type:=1) If V = False Then Debug.Print "User clicked cancel" but how do I combine the 2 parts of code? any suggestions? S. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Shorten code to apply to all sheets except a few, instead of individually naming them, and later adding to code. | Excel Programming | |||
Protect Sheet with code, but then code will not Paste error. How do i get around this. Please read for explainations.... | Excel Programming | |||
Modification in the CODE to HIDE rows and columns that start with ZERO (code given) | Excel Programming | |||
Excel code convert to Access code - Concat & eliminate duplicates | Excel Programming |