Article ID: 118779
Article Last Modified on 11/17/2003
=FOR("counter",1,50)
=FORMULA(counter)
=SELECT(,"R[1]C")
=NEXT()
=SELECT(,"R[-1]C")
=RETURN(CELL("contents"))
NOTE: The macro must return a value or the following error message will
occurs:
Microsoft Excel got an error:
"RUN(\"FILLCOL!FILLCOL\")" doesn't
understand the do script message.
tell application "Macintosh HD:Excel:Microsoft Excel"
make new document
set retVal to Evaluate "RUN(\"FILLCOL!FILLCOL\")"
return (retVal as string)
end tellRUNSCRIPT RunXLMacro TO ret WAIT WINDOW retThe macro is executed synchronously. This means that control is not returned to the user until after the macro has completed execution. If the FoxPro desktop and Command windows are not maximized, you should see the macro execute in the background, filling in the first fifty cells of a new worksheet with the numbers 1 through 50. If you can't see the macro executing, switch to Microsoft Excel once control returns to FoxPro and look at the new worksheet.
Additional query words: vFoxMac FoxMac Ascript Apple Script Scripting
Keywords: kbcode KB118779