PC Review


Reply
Thread Tools Rate Thread

Add information to a cell with Data

 
 
=?Utf-8?B?bWFwZXJhbGlh?=
Guest
Posts: n/a
 
      11th Jul 2007
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

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      11th Jul 2007
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 With Quote
 
=?Utf-8?B?bWFwZXJhbGlh?=
Guest
Posts: n/a
 
      11th Jul 2007
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
>

 
Reply With Quote
 
=?Utf-8?B?bWFwZXJhbGlh?=
Guest
Posts: n/a
 
      11th Jul 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
add data without deleting information in cell Hobher Microsoft Excel Misc 1 1st Apr 2009 02:01 PM
REMOVING DATA BASED ON OTHER CELL INFORMATION S Himmelrich Microsoft Excel Programming 3 12th Sep 2008 08:28 PM
REMOVING DATA BASED ON OTHER CELL INFORMATION S Himmelrich Microsoft Excel Programming 0 12th Sep 2008 04:08 PM
removing data based on other cell information S Himmelrich Microsoft Excel Programming 3 11th Sep 2008 09:34 PM
adding cell data into a macro to allow specified information filte =?Utf-8?B?bWF0dGd1ZXJpbGxh?= Microsoft Excel Programming 3 24th May 2005 09:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:49 PM.