home *** CD-ROM | disk | FTP | other *** search
- macro findplace(sheet,block())
- local res,whole,instruction,newselection,rownum,errortype
- errortype=4
- if sheet<>"Tutorial" then
- res=query("This button has no effect unless used from the spreadhseet \"Tutorial\".","Cancel","OK")
- =res
- endif
- instruction=int(input("Go to Screen","Which Screen number?","","OK","Cancel"))
- if type(instruction)=errortype then ="Cancelled"
- if instruction<1 or instruction>18 then
- res=query("Screens are numbered from 1 to 18","Cancel","OK")
- =instruction
- endif
- rownum=13*(instruction-1)
- whole=wholesheet(sheet)
- res=changeselection(whole(rownum,0)..whole(rownum,0),3)
- rem res=changeselection(whole(rownum+1,0)..whole(rownum+1,0),1)
- =res
- endmacro
-