View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gary Adamson[_2_] Gary Adamson[_2_] is offline
external usenet poster
 
Posts: 4
Default looping through selected sheet tabs

I am trying to write a program to go through just the
selected sheets in a workbook and then loop through the
selected cells in each sheet.


Sub Replace2()
Dim c As Object, sht As Worksheet
For Each sht In 'Is there a way to get an array of
'the sheets that are selected.

For Each c In sht.Selection 'I thought this is how
'you get the range of
'selected cells.
Debug.Print c
Next c
Next sht
End Sub