| 
        
          | 
              
                | Author |  Topic  |           |  
                | woodster
 
                UKPosts
 | 
                    
                      |  Posted - 06/17/2014 :  08:08:53 AM           
 |  
                      | Origin Ver. and Service Release: 9.1.0 (32-bit) Sr1 b237 Operating System: Windows 7 64 bit
 
 I have a script which runs hilbert transforms on a load of data files, does some calculations and plots the resultant data. This all seems to work fine, and I have assigned it to a custom button.
 
 After running the code, once everything has completed I want to move to a new folder, change the files to be imported, and run it again. However, I just get the following error message:
 
 Failed to resolve range string, VarName = book, VarValue = <active>
 
 It seems like perhaps my variables are getting confused. Is there a way to reset everything upon each run of the code? I'm pretty new to this, so sorry if this is a silly question. Although I have found similar errors on the forum, none of the suggested solutions seems relevant.
 
 Thanks
 |  |  
                | lkb0221
 
                China497 Posts
 |  |  
                |  |  Topic  |           |  |  |