XLL+ Class Library

CXlMacros::Activate

Switches to a window

[C++]
static int Activate(
   const char* window_text,
   unsigned short pane_num = 1
);

Parameters

window_text

Text specifying the name of a window to switch to: for example, "Book1".

pane_num

Pane number within window.

Return value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods