View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
GS[_2_] GS[_2_] is offline
external usenet poster
 
Posts: 3,514
Default activating windows

GS used his keyboard to write :
If Not sName = "" Then Workbooks(sName).Activate


change to...

If Not sName = "" Then Application.Windows(sName).Activate

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc