LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mac Lingo
 
Posts: n/a
Default Passing a WorkSheet from a Function???

I call the following function. It gets the correct Sheet in the
function, but the argument that Function passes
in
Set VARIABLE = Get_Sheet(...)
says "<No Variables" when I look at it in "Watch".

Function Get_Sheet(DirName, FileName, SheetName) As Worksheet
Workbooks(DirName, FileName).Open
Set Get_Sheet = Workbooks(FileName).Sheets(SheetName)
Workbooks(FileName).Close
End Function ' Get_Sheet


Any idea it doesn't work?


Tnx, Mac
Berkeley, CA



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Is there a worksheet function that will... Adam Kroger Excel Worksheet Functions 1 November 20th 05 07:41 PM
Comparing a list to a Calendar worksheet. PatrickL Excel Worksheet Functions 0 August 25th 05 04:21 PM
Worksheet function in excel only works once Divertor Chris Excel Worksheet Functions 1 July 27th 05 10:29 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM


All times are GMT +1. The time now is 09:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"