Solved

macro code to bring  an excel  sheet to the front

Posted on 2014-09-11
1
397 Views
Last Modified: 2014-09-12
Hi Experts,

    I am writing an excel macro . In the middle when macro runs ,  I open another excel file   thru the macro  ( And then a routine in macro runs that takes sometime )  My problem is , the Original sheet which called the macro is now in the back

    How can bring my original sheet  to the front ?

 Sam
0
Comment
Question by:Sam OZ
1 Comment
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40318686
Hi,

pls try

ThisWorkbook.Activate

Regards
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sumHeights2  challenge 7 114
Strange - Deleted Resource Info appears in Azure Portal 6 91
Problem to open text file 11 128
Please explain the parts of these 2 LINQ expressions 3 53
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question