PC Review


Reply
Thread Tools Rate Thread

How to copy this to another cell exactly?

 
 
cyberdude
Guest
Posts: n/a
 
      28th Jan 2008
Hi,

Suppose I enter this in a cell:

="His name is "&A3

Then, it may appear as:

His name is John

if I put John in cell A3.

So how can I copy the content:

="His name is "&A3

exactly without copying its value:

His name is John

to another cell using excel VBA?

Thank you

Dave
 
Reply With Quote
 
 
 
 
Leigh Douglass
Guest
Posts: n/a
 
      28th Jan 2008
copy the cell and then paste special, formula.

"cyberdude" wrote:

> Hi,
>
> Suppose I enter this in a cell:
>
> ="His name is "&A3
>
> Then, it may appear as:
>
> His name is John
>
> if I put John in cell A3.
>
> So how can I copy the content:
>
> ="His name is "&A3
>
> exactly without copying its value:
>
> His name is John
>
> to another cell using excel VBA?
>
> Thank you
>
> Dave
>

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      28th Jan 2008
Click in the cell, but copy the text from the formula bar (select it, then
key in Ctrl+C), click in the cell you want to copy it to and paste it there
(key in Ctrl+V).

Rick


"cyberdude" <(E-Mail Removed)> wrote in message
news:a8c87993-9392-47ec-8cba-(E-Mail Removed)...
> Hi,
>
> Suppose I enter this in a cell:
>
> ="His name is "&A3
>
> Then, it may appear as:
>
> His name is John
>
> if I put John in cell A3.
>
> So how can I copy the content:
>
> ="His name is "&A3
>
> exactly without copying its value:
>
> His name is John
>
> to another cell using excel VBA?
>
> Thank you
>
> Dave


 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      28th Jan 2008
I misread your question (you wanted a VBA solution); but, in re-reading it,
I'm not entirely sure what you want to appear in your new cell. If you want
just the formula's text, but for it not to be an active formula in the new
location, then this may do what you want. I'm assuming your formula is in A1
and you want to put it in C7...

ActiveSheet.Range("C7).Value = "'" & ActiveSheet.Range("A1").Formula

Rick



"Rick Rothstein (MVP - VB)" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Click in the cell, but copy the text from the formula bar (select it, then
> key in Ctrl+C), click in the cell you want to copy it to and paste it
> there (key in Ctrl+V).
>
> Rick
>
>
> "cyberdude" <(E-Mail Removed)> wrote in message
> news:a8c87993-9392-47ec-8cba-(E-Mail Removed)...
>> Hi,
>>
>> Suppose I enter this in a cell:
>>
>> ="His name is "&A3
>>
>> Then, it may appear as:
>>
>> His name is John
>>
>> if I put John in cell A3.
>>
>> So how can I copy the content:
>>
>> ="His name is "&A3
>>
>> exactly without copying its value:
>>
>> His name is John
>>
>> to another cell using excel VBA?
>>
>> Thank you
>>
>> Dave

>


 
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
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Microsoft Excel Misc 0 29th Jun 2009 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Microsoft Excel Misc 0 26th Jun 2009 06:01 PM
How can I copy a value from a cell and paste it into another cell while adding it to the previous value in that cell suyash.nathani@gmail.com Microsoft Excel Worksheet Functions 2 7th Nov 2007 09:39 AM
I copy a formula and the results copy from the original cell =?Utf-8?B?YnJvb2tseW5zZA==?= Microsoft Excel Misc 1 23rd Jun 2007 01:35 AM
If cell in a Col of doc1is = to cell in a Col in doc2, copy cell . =?Utf-8?B?RERD?= Microsoft Excel New Users 2 6th Oct 2004 12:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:12 AM.