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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set focus on Excel

Status
Not open for further replies.

SurfdudeNL

Programmer
Oct 11, 2003
13
NL
Hi,
I have made/customized a routine that imports mailheaders into an excel table from an Outlook folder. (For code see:
After running the focus is on Outlook. How do I programatically set the focus back on Excel? .select or .activate doesn't seem to do the trick.
 
have you tried to set Excel as Visible?


Peace!! [americanflag] [peace] [americanflag]

Mike

Didn't get the answers that you wanted? Take a look at FAQ219-2884
 
Or selecting the Workbook that was last active instead of trying to select Excel itself?


Peace!! [americanflag] [peace] [americanflag]

Mike

Didn't get the answers that you wanted? Take a look at FAQ219-2884
 
Worksheets("name").visible = true doesn' t do it.
What do you mean by last actiev (code?)
 
Workbooks("WorkbookName").Activate

Peace!! [americanflag] [peace] [americanflag]

Mike

Didn't get the answers that you wanted? Take a look at FAQ219-2884
 
Thanx, that did it (stupid me tried appactivate "excel")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top