LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problems with Custom Functions and Muiltiple open workbooks

I know this is lazy, but to save me having to spend time finding out how get
the name of the workbook to use in the definition, any chance you
could
supply me with the code?

The easiest way is probably to use the ThisWorkbook object.
Dim wksBLCK_Classified As Worksheet
Set wksBLCK_Classified = ThisWorkbook.Worksheets("BLCK
Classified")

Alternately, you can get the name using the ".name" property
debug.print ActiveWorkbook.name

or just
Dim MyWorkbook as Workbook
set MyWorkbook = ActiveWorkbook

Good luck
 
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
Custom Functions Available for all Workbooks Diego Miranda Excel Worksheet Functions 2 April 19th 10 10:11 PM
custom menu cross contamination between open workbooks. windsurferLA Excel Programming 2 May 12th 05 06:03 PM
How to access ranges in closed workbooks in custom functions Deepak Agarwal Excel Programming 3 July 9th 04 01:59 PM
Excel 2003 Workbooks.Open with CorruptLoad=xlRepairFile fails on Excel 5.0/95 file due to Chart, with Error 1004 Method 'Open' of object 'Workbooks' failed Frank Jones Excel Programming 2 June 15th 04 03:21 AM
Need help with custom open/save functions phreud[_7_] Excel Programming 2 June 14th 04 03:48 PM


All times are GMT +1. The time now is 01:02 PM.

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

About Us

"It's about Microsoft Excel"