Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Macro that opens a window giving you info in a few cells

Hello,

I have an Excel document with info being updated on a daily base. I have 4
cells (M1 - Q1 - U1 - Y1) in which I have info.

I would like to run a macro that when launched, it will give me a little
window telling me the 4 infos...

Is that possible???

Thanks!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Macro that opens a window giving you info in a few cells

How about something like this:

Private Sub ShowMessage()
With ActiveSheet
MsgBox "M1 = " & .Range("M1").Text & vbNewLine & _
"Q1 = " & .Range("Q1").Text & vbNewLine & _
"U1 = " & .Range("U1").Text & vbNewLine & _
"Y1 = " & .Range("Y1").Text
End With
End Sub


"One-Leg" wrote:

Hello,

I have an Excel document with info being updated on a daily base. I have 4
cells (M1 - Q1 - U1 - Y1) in which I have info.

I would like to run a macro that when launched, it will give me a little
window telling me the 4 infos...

Is that possible???

Thanks!!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Macro that opens a window giving you info in a few cells

Thanks... It works good but if I have 3 sheets in the document (page1 -
page2 - page3) and when I open the document, I always open the document, I'm
on page1. The info I'm looking for is on page2.

Can I simply do this:

Sub ShowMessage()
With ActiveSheet
MsgBox "M1 = " & .Range("page2!M1").Text & vbNewLine & _
"Q1 = " & .Range("page2!Q1").Text & vbNewLine & _
"U1 = " & .Range("page2!U1").Text & vbNewLine & _
"Y1 = " & .Range("page2!Y1").Text
End With
End Sub

"Vergel Adriano" wrote:

How about something like this:

Private Sub ShowMessage()
With ActiveSheet
MsgBox "M1 = " & .Range("M1").Text & vbNewLine & _
"Q1 = " & .Range("Q1").Text & vbNewLine & _
"U1 = " & .Range("U1").Text & vbNewLine & _
"Y1 = " & .Range("Y1").Text
End With
End Sub


"One-Leg" wrote:

Hello,

I have an Excel document with info being updated on a daily base. I have 4
cells (M1 - Q1 - U1 - Y1) in which I have info.

I would like to run a macro that when launched, it will give me a little
window telling me the 4 infos...

Is that possible???

Thanks!!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Macro that opens a window giving you info in a few cells

Private Sub ShowMessage()
With Sheets("page2")
MsgBox "M1 = " & .Range("M1").Text & vbNewLine & _
"Q1 = " & .Range("Q1").Text & vbNewLine & _
"U1 = " & .Range("U1").Text & vbNewLine & _
"Y1 = " & .Range("Y1").Text
End With
End Sub


Gord Dibben MS Excel MVP

On Wed, 21 Feb 2007 12:52:07 -0800, One-Leg
wrote:

Thanks... It works good but if I have 3 sheets in the document (page1 -
page2 - page3) and when I open the document, I always open the document, I'm
on page1. The info I'm looking for is on page2.

Can I simply do this:

Sub ShowMessage()
With ActiveSheet
MsgBox "M1 = " & .Range("page2!M1").Text & vbNewLine & _
"Q1 = " & .Range("page2!Q1").Text & vbNewLine & _
"U1 = " & .Range("page2!U1").Text & vbNewLine & _
"Y1 = " & .Range("page2!Y1").Text
End With
End Sub

"Vergel Adriano" wrote:

How about something like this:

Private Sub ShowMessage()
With ActiveSheet
MsgBox "M1 = " & .Range("M1").Text & vbNewLine & _
"Q1 = " & .Range("Q1").Text & vbNewLine & _
"U1 = " & .Range("U1").Text & vbNewLine & _
"Y1 = " & .Range("Y1").Text
End With
End Sub


"One-Leg" wrote:

Hello,

I have an Excel document with info being updated on a daily base. I have 4
cells (M1 - Q1 - U1 - Y1) in which I have info.

I would like to run a macro that when launched, it will give me a little
window telling me the 4 infos...

Is that possible???

Thanks!!!


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
Office XP: Excel only opens in one window. OfficeXPUser Excel Discussion (Misc queries) 5 October 13th 08 05:17 AM
The window opens in a smaller window not full sized window. Rachael Excel Discussion (Misc queries) 0 November 7th 06 10:04 PM
Help window opens minimized Dick L Excel Discussion (Misc queries) 0 September 22nd 05 01:07 AM
can i create formula giving totals based on financial & text info Dc Excel Discussion (Misc queries) 0 September 14th 05 06:29 PM
Excel 2k opens 2 sheets within same window sphilip Excel Discussion (Misc queries) 2 June 14th 05 10:52 PM


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"