but I want can control it's visible cells counts in my program.
for example: change to can display 8x2 cells;
how can i do it by using VBA or other language(C++,C#...)?
thanks a lot.
--
From China
You don't mention which version of Office you're using, but if it's 2008 you
can forget about any VBA - it's not supported in that version.
--
HTH |:>)
Bob Jones
Office:Mac MVP
"BlueCoast" <Blue...@discussions.microsoft.com> wrote in message
news:BAC13847-77DC-4D6B...@microsoft.com...
I have tryed in word application. Doubleclick the embedded excel window,
then you can drag the down-edge of the window, then the visible row can
change as big as possible, unless it can't be contained in single page.
so, it seemed that word (or excel) must support change visible range of
embedded excel sheet after created it. I just can not get the handle of that
activated window. I tried to use "Macro recording", but in "recording
state", the embedded object can not be activate...
As for VBA in Mac Office 2008, there is no substitute. AppleScript can
handle some of the same operations for which VBA was previously used but
even if VBA was supported it wouldn't change the OLE limitations.
Regards |:>)
Bob Jones
[MVP] Office:Mac
On 4/7/08 9:08 PM, in article
60FFF1FC-0028-4152...@microsoft.com, "BlueCoast"
step2>Get target window's handle
Based Win32 API FindWindowEx(), I wrote a function to locate that window
(use recursion).
step3>Send message to embedded excel window
RECT r;
GetWindowRect(hWnd, &r);
SetWindowPos(hWnd, HWND_TOP,
r.left, r.top, r.right - r.left, r.bottom - r.top + 20,
SWP_FRAMECHANGED|SWP_NOMOVE|
SWP_NOZORDER|SWP_NOACTIVATE);
It Still doesn't work. please help me...
If you're working on a Windows system - Word 2003 - you're in the wrong
newsgroup... Even if you're running Windows in a emulator such as Parallels
or VMWare Fusion on Mac hardware. This one is for Word on the Macintosh (as
indicated by the .mac. In the address of the group) operating in MAC OS.
Look here for an appropriate Windows group:
http://www.microsoft.com/office/community/en-us/FlyoutOverview.mspx
If you *are* on a Mac you're wasting your time. There is no *handle* nor
does the Mac OS employ the Win32 API.
Regards |:>)
Bob Jones
[MVP] Office:Mac
On 4/8/08 4:26 AM, in article
25553595-43D0-4DC2...@microsoft.com, "BlueCoast"
thanks a lot, Bob.
--
From China