Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Make excel the active page

Hello,

I have a macro that takes the contents of a column of cells, opens a
word docuemtn, searches through the word document and replaces some of
the words that I specified in Cell A1 with the contents of A2.

The only problem is that the macro makes Word the active program while
the marco runs but I would rather have word as the active program for
while the macro runs...any way that I can force this excel to be the
program the user see's? or perhaps is there a way NOT to activate word
window as the excel window is already active?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Make excel the active page

Hi kaiser,

kaiser wrote:
I have a macro that takes the contents of a column of cells, opens a
word docuemtn, searches through the word document and replaces some of
the words that I specified in Cell A1 with the contents of A2.

The only problem is that the macro makes Word the active program while
the marco runs but I would rather have word as the active program for
while the macro runs...any way that I can force this excel to be the
program the user see's? or perhaps is there a way NOT to activate
word window as the excel window is already active?


How are you opening/manipulating the Word doc? Via automation? If that's
the case, you should be able to set the Word application's Visible property
to False - that way, everything will be done in the background, and user
won't see Word at all. If that's not possible, you could try the
AppActivate function.

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Make excel the active page

thanks - that worked 100%

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
VBA: Make Excel the active application Gaetan Excel Discussion (Misc queries) 0 March 19th 07 05:57 PM
excel press enter to make active on 1st colum in new row Greg New Users to Excel 2 March 18th 07 05:21 PM
How do I make the border of an active cell in Excel darker? luv2sing Excel Discussion (Misc queries) 1 July 22nd 06 04:36 PM
Can I make a Excel Active Desktop Worksheet on XP? Garett Excel Discussion (Misc queries) 1 July 10th 06 05:44 PM
Excel 2003 - referenceing the active worksheet page in vlookup Ernst Excel Worksheet Functions 4 November 6th 04 11:23 PM


All times are GMT +1. The time now is 04:51 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"