Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Formula Question

I want to write in my code a formula that will look at a cell in the previous
worksheet. For example, I have 26 worksheets in my workbook, I want cell D9
on sheet2 to look at cell C8 on sheet1. How would I write that formula?

Bumper
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Formula Question

=sheet1!C8

in the worksheet

Sheets("sheet2").Range("D9").Formula="=sheet1!C8"

in VBA
--
Gary''s Student - gsnu200719


"bumper338" wrote:

I want to write in my code a formula that will look at a cell in the previous
worksheet. For example, I have 26 worksheets in my workbook, I want cell D9
on sheet2 to look at cell C8 on sheet1. How would I write that formula?

Bumper

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Formula Question

hi,
no. worksheet control "float" on top of the sheet. they cannot be assigned
to rows, columns or cells. they do tend to "stay put" but actions like delete
or add rows/columns tend to make them shift some.

sorry
regards
FSt1

"bumper338" wrote:

I want to write in my code a formula that will look at a cell in the previous
worksheet. For example, I have 26 worksheets in my workbook, I want cell D9
on sheet2 to look at cell C8 on sheet1. How would I write that formula?

Bumper

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
Newbie Formula Question - how to get formula to repeat in each subsequent row? [email protected] New Users to Excel 2 January 10th 10 05:02 PM
Formula Question Packaging Excel Discussion (Misc queries) 1 June 19th 09 05:19 PM
Formula question pie_terro Excel Worksheet Functions 4 June 26th 06 06:51 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
I get error with "ROWS" in the formula - nested formula question Marie J-son Excel Worksheet Functions 0 January 4th 06 01:55 PM


All times are GMT +1. The time now is 12:38 PM.

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"