Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Input Title on MsgBox

My workbook has a Public Constant as an InpTitle for msgBoxes. I want that
constant to be a user title that is in the spreadsheet itself. Users enter
their own title in the spreadsheet and that come up in the msgBox. Can I make
such a reference?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Input Title on MsgBox

It can't be a constant but it can be a Public variable:

Public strTitle as String

Set the variable somewhere in a Sub, that you could call via a button
in the sheet or whatever is best suitable:
strTitle = Cells(1)

Then in your MsgBox:
Msgbox "Prompt", , strTitle

RBS




"pkeegs" wrote in message
...
My workbook has a Public Constant as an InpTitle for msgBoxes. I want that
constant to be a user title that is in the spreadsheet itself. Users enter
their own title in the spreadsheet and that come up in the msgBox. Can I
make
such a reference?


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
MsgBox Title Jack S. Excel Programming 4 August 21st 04 05:37 AM
msgbox title dg[_2_] Excel Programming 2 August 17th 04 10:32 PM
input box , msgbox, formula lost Excel Programming 3 April 14th 04 02:31 PM
Using different lines in an input- or msgbox Syrus the Virus[_16_] Excel Programming 3 March 2nd 04 12:35 PM
MsgBox and User Input Terrin Excel Programming 2 September 9th 03 09:05 PM


All times are GMT +1. The time now is 03:07 PM.

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"