Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to Operate the active Excel Window with VB6

Hi

I hope I can operate and Control the active Excel Window. but I don't know
how to grasp the active Excel.

Dim ExcelID as Excel.Application

Set ExcelID

Thank you!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default How to Operate the active Excel Window with VB6

To create your own instance of Excel:
Dim ExcelID as Excel.Application
Set ExcelID= New Excel.Application

To link to a running instance of Excel:
Dim ExcelID as Excel.Application
Set ExcelID= GetObject("Excel.Application")

From then on you use ExcelID in places of where Application would be in VBA.

NickHK

"NTorch" wrote in message
...
Hi

I hope I can operate and Control the active Excel Window. but I don't know
how to grasp the active Excel.

Dim ExcelID as Excel.Application

Set ExcelID

Thank you!




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
Window XP update has caused excel to not operate Bill L. Excel Discussion (Misc queries) 2 September 25th 06 02:58 PM
active window Gerry Excel Programming 2 December 17th 04 03:33 PM
Excel 2000 macro runs v.slowly when Excel is not Active Window Mark Garratt Excel Programming 0 May 11th 04 09:18 AM
preventing closure of active excel window cyclingsal Excel Programming 2 April 26th 04 08:20 AM
Changing Excel Icon in the Active Window Aaron[_6_] Excel Programming 3 August 7th 03 09:30 AM


All times are GMT +1. The time now is 09:50 PM.

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

About Us

"It's about Microsoft Excel"