LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Message/Input Box - filename in question text?

Hi

Msg= msgbox("Are you entering data for " _
& Worksheets("OtherSheet").Range("A1").Value & "?")


Regards,
Per

On 22 Jan., 21:19, Chadersmith
wrote:
Hi Ryan/Per

What about an wanting to enter a specific cell's information into the
message box. Even if the cell is in a different sheet...

Thanks,
Chad



"Ryan H" wrote:
This is how you would do it for an Input Message Box:


* * ' get users data
* * MyData = InputBox("Are you entering data for " & ActiveWorkbook.Name &
"?")
* * If MyData = "" Then Exit Sub


This is how you would do it for a Message Box


* * MyData = MsgBox("Are you entering data for " & ActiveWorkbook..Name &
"?", vbYesNo + vbQuestion)
* * If MyData = vbYes Then
* * * * ' do something
* * End If


Hope this helps! *If so, let me know, click "YES" below.
--
Cheers,
Ryan


"Chadersmith" wrote:


Hi Everyone,


I am interested in putting the filename as text in an input/message box. Is
this possible? Something like this perhaps:


msgbox("Are you entering data for ActiveWorkbook.name?")


I know that doesn't work but thought it might help explain my question.



 
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
Add a input box to ask for a filename to macro Debbie Excel Discussion (Misc queries) 1 March 15th 10 09:45 PM
Filename in Input/Message Box Chadersmith Excel Programming 2 January 21st 10 06:13 PM
Input the filename into Excel Sheet Li Jianyong Excel Programming 4 July 26th 08 04:39 PM
Message Box - With Text Input Nick Hodge Excel Programming 2 December 8th 06 12:59 PM
Input filename at start of macro Sara Excel Programming 1 November 1st 06 10:31 AM


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