Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 276
Default msgbox to display a cell value, HOW, If possible?

I have a msgbox alert that say's something like:

msgbox "Cell A1 displays XXXX "

I want the XXXX to be whatever the value is in cell A1.

Is this possible??

Regards

Corey


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default msgbox to display a cell value, HOW, If possible?

Corey,
Dim MyRange as range

set MyRange=Range("A1")

msgbox "Cell " & MyRange.address(false,false) & " displays " & MyRange.Text

You now know the difference between .Value and .Text, but as the msgbox text
says "displays", I assume .Text.

NickHK

"Corey" wrote in message
...
I have a msgbox alert that say's something like:

msgbox "Cell A1 displays XXXX "

I want the XXXX to be whatever the value is in cell A1.

Is this possible??

Regards

Corey




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 276
Default msgbox to display a cell value, HOW, If possible?

thanks again

--
Regards

Corey


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
How to display remaining txt file which overflowed MsgBox display? EagleOne Excel Discussion (Misc queries) 1 November 2nd 06 01:10 PM
display cell value in msgbox formatted as % rgarber50 Excel Discussion (Misc queries) 5 July 10th 05 03:27 PM
MsgBox Display Michael S. Excel Programming 2 June 16th 05 10:55 PM
Display of $ in Msgbox David Excel Programming 2 September 8th 04 09:38 AM
Specify font for MsgBox display? shockley Excel Programming 1 September 11th 03 01:50 PM


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