PC Review


Reply
Thread Tools Rate Thread

Bug when calling sub within a sub

 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      27th Feb 2007
I am calling a sub that includes the input parameters, aws, awb, owb, ows and
mypattern (which is a string). We're having an inconsistent bug which
appears to occur when the owb is already opened and we reopen it. Has
anyone seen anything like this before and if so, what did you do to fix it?

Thanks,
Barb Reinhardt
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      27th Feb 2007


--
HTH,
Bernie
MS Excel MVP


"Barb Reinhardt" <(E-Mail Removed)> wrote in message
news:3D21B770-B187-4525-AE07-(E-Mail Removed)...
>I am calling a sub that includes the input parameters, aws, awb, owb, ows and
> mypattern (which is a string). We're having an inconsistent bug which
> appears to occur when the owb is already opened and we reopen it. Has
> anyone seen anything like this before and if so, what did you do to fix it?
>
> Thanks,
> Barb Reinhardt



 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      27th Feb 2007
Barb,

Post your code. You probably just need to check to see if it is open first.

HTH,
Bernie
MS Excel MVP


"Barb Reinhardt" <(E-Mail Removed)> wrote in message
news:3D21B770-B187-4525-AE07-(E-Mail Removed)...
>I am calling a sub that includes the input parameters, aws, awb, owb, ows and
> mypattern (which is a string). We're having an inconsistent bug which
> appears to occur when the owb is already opened and we reopen it. Has
> anyone seen anything like this before and if so, what did you do to fix it?
>
> Thanks,
> Barb Reinhardt



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      27th Feb 2007
Do you have to reopen it?

Could you just check to see if it's already open and just not open it?

Dim testWb as workbook
set testwb = nothing
on error resume next
set testwb = workbooks("somenamehere--not including path.xls")
on error goto 0

if testwkb is nothing then
'open it
else
'don't open it
end if



Barb Reinhardt wrote:
>
> I am calling a sub that includes the input parameters, aws, awb, owb, ows and
> mypattern (which is a string). We're having an inconsistent bug which
> appears to occur when the owb is already opened and we reopen it. Has
> anyone seen anything like this before and if so, what did you do to fix it?
>
> Thanks,
> Barb Reinhardt


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling SQL from code has different behaviour than calling it from MS SQL Server Management Studio jeeji Microsoft C# .NET 1 29th Jun 2006 10:43 AM
Calling DoCmd.RunCommand acCmdSaveRecord, after calling an API function Savvoulidis Iordanis Microsoft Access Form Coding 2 19th Mar 2005 06:34 PM
Fail to send fax when making international fax calling / calling c =?Utf-8?B?c2Ftd2lzZQ==?= Windows XP Help 1 28th Dec 2004 02:31 PM
Calling FormsAuthentication.SignOut() after calling Response.Flush =?Utf-8?B?TWFydGluIExlZQ==?= Microsoft ASP .NET 1 28th Sep 2004 01:47 PM
Server Side button calling page_load before calling it's own click event. Ryan Ternier Microsoft ASP .NET 4 29th Jul 2004 02:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:44 PM.