Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add information to a cell with Data
Can I have a statement to add information to a cell that already has data.
For example the cell has the following description: depth = Worksheets("DEFAULTS").Range("C6") However, when I choose NO in a if condiction (see below) I want to add "_2nd file" to this specific cell: ElseIf resp = vbNo Then 'save the file by adding (2nd file) depth = "" & depth & " " & "__2nd file" & "" I added as I show above but it is not working. Could you please help in this matter. Thanks. Maperalia |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add information to a cell with Data
You've updated the string Depth, but you haven't updated the cell yet:
ElseIf resp = vbNo Then 'save the file by adding (2nd file) depth = depth & " " & "__2nd file" worksheets("Defaults").range("c6").value = depth .... maperalia wrote: Can I have a statement to add information to a cell that already has data. For example the cell has the following description: depth = Worksheets("DEFAULTS").Range("C6") However, when I choose NO in a if condiction (see below) I want to add "_2nd file" to this specific cell: ElseIf resp = vbNo Then 'save the file by adding (2nd file) depth = "" & depth & " " & "__2nd file" & "" I added as I show above but it is not working. Could you please help in this matter. Thanks. Maperalia -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add information to a cell with Data
Dave;
Thnaks very much. It is working wonderfully. Maperalia "Dave Peterson" wrote: You've updated the string Depth, but you haven't updated the cell yet: ElseIf resp = vbNo Then 'save the file by adding (2nd file) depth = depth & " " & "__2nd file" worksheets("Defaults").range("c6").value = depth .... maperalia wrote: Can I have a statement to add information to a cell that already has data. For example the cell has the following description: depth = Worksheets("DEFAULTS").Range("C6") However, when I choose NO in a if condiction (see below) I want to add "_2nd file" to this specific cell: ElseIf resp = vbNo Then 'save the file by adding (2nd file) depth = "" & depth & " " & "__2nd file" & "" I added as I show above but it is not working. Could you please help in this matter. Thanks. Maperalia -- Dave Peterson |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add information to a cell with Data
Dave;
Thanks very much. It is working wonderfully. Maperlia "Dave Peterson" wrote: You've updated the string Depth, but you haven't updated the cell yet: ElseIf resp = vbNo Then 'save the file by adding (2nd file) depth = depth & " " & "__2nd file" worksheets("Defaults").range("c6").value = depth .... maperalia wrote: Can I have a statement to add information to a cell that already has data. For example the cell has the following description: depth = Worksheets("DEFAULTS").Range("C6") However, when I choose NO in a if condiction (see below) I want to add "_2nd file" to this specific cell: ElseIf resp = vbNo Then 'save the file by adding (2nd file) depth = "" & depth & " " & "__2nd file" & "" I added as I show above but it is not working. Could you please help in this matter. Thanks. Maperalia -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
add data without deleting information in cell | Excel Discussion (Misc queries) | |||
How do I obtain cell information (column/row) from data marker? | Charts and Charting in Excel | |||
Moving a line of data when information is entered in a specific cell. | Excel Discussion (Misc queries) | |||
adding cell data into a macro to allow specified information filte | Excel Programming | |||
Information from one cell pulls information from another cell | Excel Programming |