Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default how msgbox from Word when ran from Excel?

Orlando Magalhães Filho gave a nice answer to your first post:

http://google.com/groups?threadm=008...0a% 40phx.gbl

And if you're looking for old posts:

you can use google (maybe a few hours behind) to search for stuff you've
posted (and find the replies, too)

http://groups.google.com/advanced_group_search
http://groups.google.com/advanced_gr...Excel*&num=100

Ron de Bruin has an excel addin that you may like:
http://www.rondebruin.nl/Google.htm

Ian Elliott wrote:

Thanks in advance.
I am writing a macro that gets some numbers from a Word
document and puts them in a worksheet.
I am trying to make some code so that if the number is not
found, the user is alerted, and instructed to highlight
the number the user wants brought it (by highlighting with
the mouse & mouse button).
I want to do a msgbox to alert the user, but when I do:

Dim wordapp as New Word.Application'ToolReferencesMS
' Word 10.0 Object Library
With wordapp
.Documents.Open filename:="Book1.xls"
...
msgbox "Hello world"
...
.Documents.Close
End With

When the msgbox is executed, the Word window closes and
goes to an icon on the bottom of the screen, and the
msgbox opens (with 'Excel' in its title), and since I ran
the macro with Excel open, Excel is on the screen. I would
like the msgbox to open above the Word document, is this
possible?
I tried
With wordapp
.msgbox "hello world"
End With
but that didn't work.

Thanks again.


--

Dave Peterson

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
Need Excel count of 1 word if found in multi-word cells of column Function_Challenged Excel Worksheet Functions 1 August 27th 09 12:08 AM
Excel msgbox when cell range is clicked SoggyCashew Excel Discussion (Misc queries) 2 November 6th 08 10:25 PM
Excel 7, paste linked to word becomes black when word pdf'd Surffreak Excel Discussion (Misc queries) 0 June 1st 08 12:17 AM
code to close an excel sheet without saving it .(via msgbox) Satyam Reddy Excel Worksheet Functions 2 May 14th 08 02:48 PM
Pop up MsgBox upon opening Excel File certain_death Excel Discussion (Misc queries) 5 June 2nd 06 12:38 PM


All times are GMT +1. The time now is 01:14 AM.

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"