home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / apps / spreadsh / 675 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.2 KB  |  61 lines

  1. Newsgroups: comp.apps.spreadsheets
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nwu.edu!r-mcdonald
  3. From: r-mcdonald@nwu.edu (Robert McDonald)
  4. Subject: Re: Quattro Macros--Help!
  5. Message-ID: <r-mcdonald.14.0@nwu.edu>
  6. Lines: 49
  7. Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
  8. Organization: Northwestern University
  9. References: <0f34YZW00WBN88i1sO@andrew.cmu.edu>
  10. Date: Fri, 20 Nov 1992 17:53:52 GMT
  11.  
  12. In article <0f34YZW00WBN88i1sO@andrew.cmu.edu> Stephen Sorensen <ss9o+@andrew.cmu.edu> writes:
  13. >Date: Thu, 19 Nov 1992 21:10:45 -0500 
  14. >From: Stephen Sorensen <ss9o+@andrew.cmu.edu>
  15. >Subject: Quattro Macros--Help!
  16. >Hi folks,
  17. >Can ANYONE answer my question about using macros in Quattropro (I'm
  18. >using qp 4.0 for windows) ? All I want to do is have a macro go through
  19. >and color all the cells with numbers; I want it to leave the blank cells
  20. >alone. So far, I've got something like this:
  21. >                    {IF #NOT#@Active_Cell}{RIGHT}
  22. >                    {Setproperty....}
  23. >                    {Right}
  24. >
  25. >I keep getting an error message about an invalid statement. Does anyone
  26. >know how to properly use such an "IF" clause ? The Quattro manuals seem
  27. >basically useless.
  28. >
  29. >Any help would be GREATLY appreciated.
  30. >
  31. >Thanks,
  32. >Steve
  33. >
  34.  
  35. First, sorry to all about my previous incomplete posting; I 
  36. accidentally sent it in the middle of typing and couldn't stop it.  
  37.  
  38. There are two solutions to what you want to do.  The non-macro solution 
  39. (which *sounds* as if it would suffice, based on your description) is to 
  40. select /Options,colors,conditional and you can then set numeric values to 
  41. display in whatever color you want.
  42.  
  43. A macro solution would be to use the fact that @cell can check whether a 
  44. cell has a value in it: 
  45.  
  46.    {if @cell("type",a1)="v"}etc...
  47.  
  48. and you could cycle through the spreadsheet, perhaps using @cellindex in 
  49. place of "a1".  The first solution is definitely the easiest if it does what 
  50. you want.
  51.  
  52. -- Bob
  53.  
  54.  
  55. ***********************************************
  56. Robert McDonald  / Internet: r-mcdonald@nwu.edu 
  57. Fin. Dept., Kellogg School, Northwestern Univ.  
  58. 2001 Sheridan Rd., Evanston, IL 60208-2006   
  59. voice: 708-491-8344 / Fax 708-491-5719    
  60. ***********************************************
  61.