Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
quick code question
Hard to tell how this really looks, but it will work if it is set up like
this: If Sheet16.Range("printcell") = 1 Then Sheet16.Range("exp_loss_page_no").Value= b + 1 Else Sheet16.Range("exp_loss_page_no") .Value= 0 End If If you want it all on one line you don't need End if -- Regards, Tom Ogilvy "dave!!" wrote in message ... can anyone tell me what's wrong with this?? If Sheet16.Range("printcell") = 1 Then Sheet16.Range("exp_loss_page_no") .Value= b + 1 Else Sheet16.Range("exp_loss_page_no") .Value= 0 End If |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
quick code question
Hi Dave
looks o.k. (besides some linewrapping). What does not work for you? -- Regards Frank Kabel Frankfurt, Germany dave!! wrote: can anyone tell me what's wrong with this?? If Sheet16.Range("printcell") = 1 Then Sheet16.Range("exp_loss_page_no") .Value= b + 1 Else Sheet16.Range("exp_loss_page_no") .Value= 0 End If |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
quick code question
can anyone tell me what's wrong with this??
If Sheet16.Range("printcell") = 1 Then Sheet16.Range("exp_loss_page_no") ..Value= b + 1 Else Sheet16.Range("exp_loss_page_no") .Value= 0 End If |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Quick Code | Excel Discussion (Misc queries) | |||
Quick little question | Excel Discussion (Misc queries) | |||
Quick Question | Excel Discussion (Misc queries) | |||
Quick VBA code question (if...then statement) | Excel Programming | |||
Is there a quick way to see which objects have code attached? | Excel Programming |