ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   copy the value of the activecell on sheet1 to the same address on sheet 2 (https://www.excelbanter.com/excel-programming/408865-copy-value-activecell-sheet1-same-address-sheet-2-a.html)

Maxx[_2_]

copy the value of the activecell on sheet1 to the same address on sheet 2
 
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

copy the value of the activecell on sheet1 to the same address onsheet 2
 
worksheets("sheet2").range(activecell.address).val ue = 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

Maxx[_2_]

copy the value of the activecell on sheet1 to the same address on sheet 2
 
Thak you so much.


"Dave Peterson" wrote in message
...
worksheets("sheet2").range(activecell.address).val ue = 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





All times are GMT +1. The time now is 03:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com