View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Die_Another_Day Die_Another_Day is offline
external usenet poster
 
Posts: 644
Default Refer to worksheet

Set rapportWorksheet = Sheets("Rapport")

HTH

Charles

Arne Hegefors wrote:
I want to refer to a worksheet that has a certain name. Now I write:

Set rapportWorksheet = "Rapport"

That is I want to somehow be able to use this variable later and refer to
the worksheet by the variable. That way I only have to change the name of the
worksheet once in case I have to do that. Please help me with the syntax.
Thanks very much!