ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Now sure how to get data from another sheet (https://www.excelbanter.com/excel-programming/290214-now-sure-how-get-data-another-sheet.html)

cakonopka[_10_]

Now sure how to get data from another sheet
 
Hi there all

Private Sub CommandButton1_Click()
Range("A1").Copy Destination:=Range("C18")
Range("A1").ClearContents

End Sub

I have this command, i just want to know what i would write befor
"C18" to get it to put the data on another sheet e.g called "sheet2".

Cheers

from CK

I betr this is really simple, lo

--
Message posted from http://www.ExcelForum.com


Nikos Yannacopoulos[_5_]

Now sure how to get data from another sheet
 
Worksheets("Sheet2").Range("C18")

"cakonopka " wrote in message
...
Hi there all

Private Sub CommandButton1_Click()
Range("A1").Copy Destination:=Range("C18")
Range("A1").ClearContents

End Sub

I have this command, i just want to know what i would write before
"C18" to get it to put the data on another sheet e.g called "sheet2".

Cheers

from CK

I betr this is really simple, lol


---
Message posted from http://www.ExcelForum.com/





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

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