Learn R Programming

DescTools (version 0.99.30)

GetCurrWrd: Get a Handle to a Running Word Instance

Description

Look for a running Word instance and return its handle. NULL is returned if nothing's found.

Usage

GetCurrWrd()
GetCurrXL()

Arguments

Value

a handle (pointer) to the running Word, resp. Excel instance.

See Also

GetNewWrd, IsValidHwnd

Examples

Run this code
# 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