Look for a running Word instance and return its handle. NULL
is returned if nothing's found.
GetCurrWrd()
GetCurrXL()
a handle (pointer) to the running Word, resp. Excel instance.
# NOT RUN {
# Windows-specific example
x <- rnorm(100)
wrd <- GetCurrWrd()
if(IsValidHwnd(wrd)){
Desc(x, wrd=wrd)
} else {
print("GetCurrWrd: no running word instance found...")
}
# }
Run the code above in your browser using DataLab