Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
pea pea is offline
external usenet poster
 
Posts: 4
Default Select the same cell in different sheets in the same workbook?

Hi
I'm using the following code in a workbook. I'm investigating data by
charting the data in the sheet "kurve".
Sub Auto_Open()
'

Sheets("Liste").Select
Range("AC2").Select

Sheets("Justliste").Activate
Range("AC2").Select

Sheets("JustRatioListe").Activate
Range("AC2").Select

Sheets("GNværdier").Activate
Range("AC2").Select

Sheets("Liste").Select
End Sub

Sub MellemdatacheckComplet()
'
'Kopierer pladeværdierne i liste (ukompenseret)til kurvearket
Sheets("Liste").Activate
ActiveCell.Offset(0, 0).Range("A1:GS1").Select
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1").Select
Sheets("Kurve").Select
Range("B3").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=True


'Kopierer pladeværdierne kompenseret for HDW fra JustListe

Sheets("JustListe").Activate
ActiveCell.Offset(0, 0).Range("A1:GS1").Select
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1").Select
Sheets("Kurve").Select
Range("C3").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=True




'Gennemsnitsværdierne af plademålingerne Ukompenseret
Sheets("GNværdier").Activate
ActiveCell.Offset(0, 0).Range("A1:CV1").Select
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1").Select
Sheets("Kurve").Select
Range("D3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=True


'Kopierer kompenseret for ratio og pen
Sheets("JustRatioListe").Activate
ActiveCell.Offset(0, 0).Range("A1:GS1").Select
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1").Select
Sheets("Kurve").Select
Range("E3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=True



Sheets("Kurve").Select




End Sub

I use the macro "MellemdatacheckComplete" to investigate the data row by row
from the top in the 4 sheets "Liste", JustListe", "GNværdier"and
JustRatioListe".As you see in the autoopen the macro "mellemdatachec" starts
in the same column and row in the 4 sheets.

What I want is if I could type a rownumber in a listbox or something, so I
had the same cell (cell address) selected in the 4 sheets and so afterwards
run the macro "mellemdatacheckComplete?
Could sombody help me with the code?
Regards
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
How can I print only select sheets in my workbook? MVictoreen New Users to Excel 2 March 28th 08 10:21 PM
Select All Sheets in Workbook Robert Christie[_3_] Excel Programming 11 December 21st 05 09:20 PM
macro to select sheets/page in a workbook and print them Todd Excel Programming 1 June 8th 04 04:19 AM
Sheets select method fails when workbook is opened by another workbook Mike Excel Programming 2 June 8th 04 04:17 AM
Copy select sheets to another Workbook Randy[_11_] Excel Programming 0 January 14th 04 05:06 PM


All times are GMT +1. The time now is 03:44 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"