LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Working with 2 workbooks

I am currently writing code that opens a second workbook to pull infomration
from it. One of my subroutines is used by multiple buttons and sometimes the
subroutine needs to work on the sheet with the button, and sometimes it needs
to work on the opened workbook.

I have a public variable (MySheet) declared so I can set the WB i want, but
sometimes that variable is already filled when this subroutine activates, and
sometimes it needs to be filled.

I've tried things like if isempty(mysheet) or if mysheet = nothing and can't
seem to find a way to determine if mysheet is set or not, without the code
erroring. Anysuggestions on how to check to see if the variable is set or
not? Thanks.

--
*********************
J Streger
MS Office Master 2000 ed.
MS Project White Belt 2003

 
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
Working with the forms in different workbooks... Joe_Germany Excel Worksheet Functions 0 January 17th 08 06:01 AM
Working with Different workbooks eawinga Excel Discussion (Misc queries) 2 March 7th 05 02:06 PM
Working with Different workbooks eawinga Excel Discussion (Misc queries) 0 March 7th 05 09:59 AM
Working with two workbooks aspadda[_2_] Excel Programming 0 November 18th 04 06:29 PM
Working with Two WorkBooks Donald Lloyd Excel Programming 3 August 5th 03 05:20 PM


All times are GMT +1. The time now is 05:17 AM.

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"