View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gijs Breedveld Gijs Breedveld is offline
external usenet poster
 
Posts: 13
Default Sheet reference in VBA

Hi,

In a macro I use

With Sheets("sht2").Range("b1:b100").AdvancedFilter _

to select a range on a sheet.

I want to select the sheet to perform this operation on by adding the sheet
name to a cell at a different sheet.
Say in the sheet "Sht1" in cell "a1" I put the name "Sht2"

How can I adjust teh code so that it will use at the value in sheet "Sht1"
in cell "a1"?

Best regards, Gijs