Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API and Objects in VBA

Status
Not open for further replies.

Philly44

Programmer
Jul 17, 2001
277
CA
Does anyone know if Windows assigns OLE Objects a windows handle? And if so how can I get it that handle? Any help would be really appreciated.

Chris
 
I don't know how much this helps, but it may get you started or someone else can fill in the details.

All windows objects have a handle (hwnd). The trouble is that not all objects have a method that returns a handle unlike the Me.hwnd function.

I would guess though Windows has some API that can return the window's handle but I don't know it.

Hope this helps,
Rewdee

P.s. Why do you need to go so low-level to get the Windows handle. Is there an easier way to do what you want?
 
The reason I think I need to go so low level is that I need to set a specific option when this document is opened. Because we run under NT every profile would have to be recreated to have this setup as the default. The exact setting I have to change is I need to uncheck the option to ask users if they want to update links. I need to do it automatically but it keeps asking. I have thought maybe of a macro in the on open of this document but because of security reasons they are disabled. Any help or input on this would be greatly appreciated.

Thanx
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top