XLL+ Class Library

CXlMacros::WindowSize

Changes the size of the active window by moving its lower-right corner so that the window has the width and height you specify

[C++]
static int WindowSize(
   long x_num,
   long y_num,
   const char* window_text = 0
);

Parameters

x_num

specifies the width of the window and is measured in points.

y_num

specifies the height of the window and is measured in points.

window_text

Window_text specifies which window to switch to and restore.

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