Search : in
By :

Show value for cells in 'previous' sheets

Last answer on Sep 27, 2009 2:23:20 am BST Ciaran, on Sep 26, 2009 12:48:53 pm BST 
 Report this message to moderators

Hello,

I would like to show the value for specified cells in a 'previous' sheet. However I would like to be able to copy and paste the formula throughout 400 sheets so I need to know exactly how to do this if it is possible of course.

Basically it would be the same result as putting in a formula '=Sheet1!A1' (when you are on sheet 2 A1). But if I copy and paste this formula into say sheet 3 A1 then it will still be showing the value of sheet 1 A1 when if fact I want it to show sheet2 A1 because it is the previous sheet to sheet 3.

I hope I'm explaining this ok.

Many thanks for your help.

Regards,
Ciaran

Configuration: Windows Vista Internet Explorer 7.0

Best answers for « Show value for cells in 'previous' sheets » in :
Excel – Comparing cell A1 to entire A column in Sheet 2 ShowExcel – Comparing cell A1 to entire A column in Sheet 2 Issue Solution Note Issue I have been trying to compare sheet1 A2 to sheet2 A2 through A500 and if it exists somewhere in sheet2's a col then copy that entire row to a new sheet....
[VBA] Detecting changes in cell Show[VBA] Detecting changes in cell The Event Change feature of a sheet will detects the change in the active cell but it gives no information about the content. The example given below will help you to find out if the cell was changed,...
Using the [su] command ShowUsing the ‘‘su’’ command The ''su'' Sign in as a different user ID with "su" Start a new shell connection with "su -" Back to previous shell Notes The ''su'' The "su" is defined as the "Super User" which has the ability to...
Download Tab Effect ShowTab Effect is an extension for firefox which adds effect when you change one tab to the other. Tab Effect is small, free, reliable and efficient. Tab Effect is compatible with: Linux/MacOSX/95/98/Me/2000/XP/Vista. Tab Effect requires the...
Worksheet - Cells ShowThe Concept of a Cell A "cell" is the intersection between a line (horizontal) and a column (vertical) on a worksheet. Thus, the name of the line combined with the name of the column gives the cell's coordinates (the term address is sometimes also...
Linux - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines...
CSS - Style sheets ShowFont properties Property Value Description font-family Specific font (Arial, Times, Verdana) Familly (serif, sans-serif, fantasy, monospace, cursive) Defines one or more font names or font families. If multiple fonts are defined,...

1

 venkat1926, on Sep 27, 2009 2:23:20 am BST

Try this macro(Modify to suit you)

Sub test()
Dim j As Integer, k As Integer
j = Worksheets.Count
'MsgBox j
For k = 2 To j
Worksheets(k).Activate
'MsgBox ActiveSheet.Name
Range("B1") = ActiveSheet.Previous.Range("A1")
Next k
End Sub


remember activesheet.previous will give error if the active sheet is the first sheet because there is no previous sheet.

Reply to venkat1926