Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Showing NULL Command Bar handle

Hi,

I want to fetch Excel Command Bar and Status bar handles. To get
handles, i have written following code:

Please assume that excel application is already opened on desktop
whose caption is "EXCEL_TEST".

------------------------------------------------------------------------------------------------------------------------------------------------
Line1: HWND hWndMainXLS = FindWindow("XLMAIN",
"EXCEL_TEST");
Line2: HWND hWndStatusBar = FindWindowEx(hWndXLDesk, 0,
"EXCEL4", NULL);
Line3: HWND hWndCommandBar = FindWindowEx(hWndXL, 0,
"MsoCommandBar", NULL);
------------------------------------------------------------------------------------------------------------------------------------------------

In above code, Line 1 and Line 2 successfully returns handler of main
excel sheet and status bar, but code in Line3 returns NULL handler. In
nutshell, above code doesn't return me the correct handler for
CommandBar.

Please let us know what is the problem in the code.

Thank You,
Jaydeep

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill handle turned into a move handle Northwoods Excel Discussion (Misc queries) 1 March 2nd 07 03:40 PM
cell value based on null/not null in another cell spence Excel Worksheet Functions 1 February 18th 06 11:49 PM
Preventing NULL showing as 0 on a pivot chart using Office Web Component. lk Charts and Charting in Excel 1 September 13th 05 01:00 PM
Showing/ not showing "getting started" when excel starts Ask Excel Discussion (Misc queries) 1 July 20th 05 04:20 PM
Keyboard command to replace double clicking the fill handle Pat Excel Discussion (Misc queries) 1 May 18th 05 05:50 PM


All times are GMT +1. The time now is 03:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"