Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
Have the following code(portion of) and would like to hear of any suggestions to making it more efficient. TIA Cameron ================================================== ========================== ======== 'TextBox3.Text has to have some value before getting to this point, so include it ' in the ActiveCell.Value now. ActiveCell.Value = TextBox3.Text 'Check if the remaining TextBoxes have any value and collate. If TextBox4.Text < "" And TextBox5.Text = "" And TextBox6.Text = "" Then _ ActiveCell.Value = ActiveCell.Value & vbLf & _ TextBox4.Text If TextBox4.Text = "" And TextBox5.Text < "" And TextBox6.Text = "" Then _ ActiveCell.Value = ActiveCell.Value & vbLf & _ TextBox5.Text If TextBox4.Text = "" And TextBox5.Text = "" And TextBox6.Text < "" Then _ ActiveCell.Value = ActiveCell.Value & vbLf & _ TextBox6.Text If TextBox4.Text < "" And TextBox5.Text < "" And TextBox6.Text = "" Then _ ActiveCell.Value = ActiveCell.Value & vbLf & _ TextBox4.Text & vbLf & _ TextBox5.Text If TextBox4.Text < "" And TextBox5.Text = "" And TextBox6.Text < "" Then _ ActiveCell.Value = ActiveCell.Value & vbLf & _ TextBox4.Text & vbLf & _ TextBox6.Text If TextBox4.Text = "" And TextBox5.Text < "" And TextBox6.Text < "" Then _ ActiveCell.Value = ActiveCell.Value & vbLf & _ TextBox5.Text & vbLf & _ TextBox6.Text If TextBox4.Text < "" And TextBox5.Text < "" And TextBox6.Text < "" Then _ ActiveCell.Value = ActiveCell.Value & vbLf & _ TextBox4.Text & vbLf & _ TextBox5.Text & vbLf & _ TextBox6.Text ================================================== ========================== ======== |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Really need help with existing code. | Excel Discussion (Misc queries) | |||
Help with existing code | Excel Discussion (Misc queries) | |||
Help in Modification of existing code | Excel Programming | |||
Improving code.....For Next | Excel Programming | |||
Code for existing links | Excel Programming |