+ Reply to Thread
Results 1 to 4 of 4

Set Focus to excel application created by Create Object

  1. #1
    Registered User
    Join Date
    09-18-2007
    Posts
    20

    Exclamation Set Focus to excel application created by Create Object

    HI,
    I have created an excel application using the Create Object method.After creation how do i setFocus directly to the excel sheet and not to the window i created it from .
    Can anybody please help me on this.
    Thankyou

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Ckb,

    Here is the code to switch to the new workbook. The Excel Workbook you create will be the last one in the list of Open Workbooks.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Ckb,

    Here is another method using the Windows API.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  4. #4
    Registered User
    Join Date
    01-14-2013
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Set Focus to excel application created by Create Object

    This is not working it might show the new application window but it's not activating it. for example if i will write in the end of this sub : "cells(1,1)=888"
    it wiil enter this value into the source workbook which runs the code and not to the new application workbook how can I solve it?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1