Sheet stuff

DUNDERHEAD

New Member
Joined
May 6, 2016
Messages
6
I have 18 sheets in a book. How do i make all sheets go to the same cell on there own sheet just by clicking on any sheet any cell?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
If I understand correctly, highlight all sheets and then click on a particular cell and each sheet will move the cursor to that cell.
 
Upvote 0
Hi DUNDERHEAD,

For a slightly more automated solution you could try the following macro. Simply insert a button onto your main sheet and apply the following code to it. When you click the macro button you will be asked to input a cell value. This can either be done by typing the desired cell in the box or by clicking the desired cell, then pressing OK. Once this is done the macro will select all sheets and select the specified cell on them all, before re-selecting the main sheet where the button was:

Code:
Sub SelectSameCellOnAllSheets()
' Defines variables
Dim Rng As Range


On Error Resume Next


' Sets Rng as the cell selected for the input box
Set Rng = Application.InputBox( _
    "Please select desired range", _
    "Select Range", , Type:=8)


' If Rng value is nothing then...
If Rng Is Nothing Then
    ' Display an error to that effect
    MsgBox "No cell was selected.", vbOKOnly, "Attention!"
    ' Exit the macro early
    Exit Sub
' Else if Rng is not nothing then...
Else
    ' Select all sheets
    ActiveWorkbook.Sheets.Select
    ' Select Rng
    Rng.Select
    ' Re-select the main active sheet
    ActiveSheet.Select
End If


End Sub
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top