Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Filename in Input/Message Box

Hello Everyone,

I have done some searching to no avail about how to put the activeworksheet
filename into the text of an input/message box.

Does anyone have an idea that could work?

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Filename in Input/Message Box

msgbox Prompt:="hi " & activesheet.name

or maybe:

msgbox Prompt:="hi there", title:=activesheet.name

Chadersmith wrote:

Hello Everyone,

I have done some searching to no avail about how to put the activeworksheet
filename into the text of an input/message box.

Does anyone have an idea that could work?

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Filename in Input/Message Box

Dim S As String

For the worksheet name:
S = ActiveSheet.Name
For the workboook name:
S = ThisWorkbook.Name
For the workbook file name:
S = ThisWorkbook.FullName
MsgBox S


Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]




On Thu, 21 Jan 2010 08:46:11 -0800, Chadersmith
wrote:

Hello Everyone,

I have done some searching to no avail about how to put the activeworksheet
filename into the text of an input/message box.

Does anyone have an idea that could work?

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
Add a input box to ask for a filename to macro Debbie Excel Discussion (Misc queries) 1 March 15th 10 09:45 PM
Error message - Errors were detected while saving FILENAME Tim[_11_] Excel Discussion (Misc queries) 1 September 11th 08 03:44 PM
Input the filename into Excel Sheet Li Jianyong Excel Programming 4 July 26th 08 04:39 PM
Input filename at start of macro Sara Excel Programming 1 November 1st 06 10:31 AM
input message tamersaid Excel Programming 1 June 6th 04 02:06 PM


All times are GMT +1. The time now is 12:06 PM.

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"