PC Review


Reply
Thread Tools Rate Thread

copy the value of the activecell on sheet1 to the same address on sheet 2

 
 
Maxx
Guest
Posts: n/a
 
      4th Apr 2008
How can I copy the value of the activecell on sheet1 to the same address on
sheet 2?

(So if activecell on sheet 1 is B8, macro will copy value to B* on sheet 2.)


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      5th Apr 2008
worksheets("sheet2").range(activecell.address).value = activecell.value
(where sheet1 is the activesheet.)

Actually, this just "copies" the value.

activecell.copy _
destination:=worksheets("sheet2").range(activecell.address)

Would do the copy|paste.





Maxx wrote:
>
> How can I copy the value of the activecell on sheet1 to the same address on
> sheet 2?
>
> (So if activecell on sheet 1 is B8, macro will copy value to B* on sheet 2.)


--

Dave Peterson
 
Reply With Quote
 
Maxx
Guest
Posts: n/a
 
      5th Apr 2008
Thak you so much.


"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> worksheets("sheet2").range(activecell.address).value = activecell.value
> (where sheet1 is the activesheet.)
>
> Actually, this just "copies" the value.
>
> activecell.copy _
> destination:=worksheets("sheet2").range(activecell.address)
>
> Would do the copy|paste.
>
>
>
>
>
> Maxx wrote:
>>
>> How can I copy the value of the activecell on sheet1 to the same address
>> on
>> sheet 2?
>>
>> (So if activecell on sheet 1 is B8, macro will copy value to B* on sheet
>> 2.)

>
> --
>
> 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
Updated sheet content is not copy pasting from sheet1 to sheet2 arun Microsoft Excel Programming 2 25th May 2009 09:04 PM
address of activecell in another sheet Stefi Microsoft Excel Programming 4 5th Mar 2008 03:18 PM
copy data from sheet1 to sheet but in varying positons Bossman7121 Microsoft Excel Worksheet Functions 3 6th Dec 2007 02:04 PM
Bug - Programmatic copy/paste other sheet to activecell =?Utf-8?B?R3JlZyBXaWxzb24=?= Microsoft Excel Programming 4 13th Apr 2007 06:34 AM
Macro-Copy various cells in sheet1 into next available row in sheet 2 lunker55 Microsoft Excel Misc 7 21st Oct 2005 11:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:00 PM.