home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / xltools.zip / FINDHELP.TXT < prev    next >
Text File  |  1990-10-18  |  1KB  |  25 lines

  1.                     FINDFILE
  2.  
  3. For Excel Macro Language programmers.  FINDFILE addresses one of the most 
  4. common requirements in producing Macro Language driven applications: 
  5. security that the currently active sheet is the correct one on which to 
  6. perform the actions.  FIND_AND_OPEN_FILE is inserted as the first 
  7. executable line of every routine in which there is any chance of harm if 
  8. the wrong spreadsheet is active.  In particular, this means every routine 
  9. which a user might directly select from the men u or a dialog box.  It is 
  10. very fast, returns FALSE if it cannot find and activate the spreadsheet, 
  11. and will both activate and load from the file system.
  12.  
  13. This code is inserted directly into the macro sheet under development.  It 
  14. is fully documented and its use is unrestricted.
  15.  
  16. FIND_AND_OPEN_FILE accepts one argument: the name of the desired active 
  17. file.  It determines whether this is the current active file.  If it is 
  18. not active, it attempts to activate it.  If the file is not open, it 
  19. attempts to find it and open it.  Returns FALSE when unsuccessful, and 
  20. returns the name of the file when successful.
  21.  
  22. There are two subordinate routines, which may be called directly, since 
  23. they also take the name argument.  One identifies whether the file is 
  24. currently open.  The other identifies whether the file is available in the 
  25. directory.  These routines perform no action; they only return information.