Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Referring to a cell in another sheet

Hi. I need to have a formula in one sheet refer to a cell value in another
sheet. I would know how to do this if this was in the same sheet. How do I
do this with respect to another sheet. For example, in the following
command, I would like to refer to cells (i, 2) in Sheet 1 from the current
sheet.

Cells(lastrow2 + 1, 2) = Cells(i, 2)

Thanks,
Mike.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Referring to a cell in another sheet

I think...

activesheet.cells(lastrow2+1,2).value = worksheets("sheet 1").cells(i,2).value



Mike D. wrote:

Hi. I need to have a formula in one sheet refer to a cell value in another
sheet. I would know how to do this if this was in the same sheet. How do I
do this with respect to another sheet. For example, in the following
command, I would like to refer to cells (i, 2) in Sheet 1 from the current
sheet.

Cells(lastrow2 + 1, 2) = Cells(i, 2)

Thanks,
Mike.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Referring to a cell in another sheet

Thanks, Dave!

"Dave Peterson" wrote:

I think...

activesheet.cells(lastrow2+1,2).value = worksheets("sheet 1").cells(i,2).value



Mike D. wrote:

Hi. I need to have a formula in one sheet refer to a cell value in another
sheet. I would know how to do this if this was in the same sheet. How do I
do this with respect to another sheet. For example, in the following
command, I would like to refer to cells (i, 2) in Sheet 1 from the current
sheet.

Cells(lastrow2 + 1, 2) = Cells(i, 2)

Thanks,
Mike.


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Referring the cell instead of typing the sheet name vinu Excel Discussion (Misc queries) 3 April 28th 10 02:36 PM
putting date in a cell referring to the tab sheet Rachel Excel Discussion (Misc queries) 1 November 6th 09 06:16 PM
Referring to a variable cell on another sheet PaladinWhite Excel Worksheet Functions 5 March 24th 08 02:14 AM
Formula referring to a different sheet luvthavodka Excel Discussion (Misc queries) 1 November 12th 06 10:05 PM
referring to previous sheet Iolao Excel Discussion (Misc queries) 3 November 26th 04 08:40 PM


All times are GMT +1. The time now is 08:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"