Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Msg Box input string


Can anyone advise me the macro code to create a msg box having a space
for the user to input a text string which can then be used for
subsequent processing?
Thanks, Exdevon


--
Exdevon
------------------------------------------------------------------------
Exdevon's Profile: http://www.excelforum.com/member.php...o&userid=32108
View this thread: http://www.excelforum.com/showthread...hreadid=518654

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default Msg Box input string

It's not the Msgbox() statement you need, it's
Input() that you need, like so..
In VBA code
ans = Input("Enter your Name") << see help for more


"Exdevon" wrote in
message ...

Can anyone advise me the macro code to create a msg box having a space
for the user to input a text string which can then be used for
subsequent processing?
Thanks, Exdevon


--
Exdevon
------------------------------------------------------------------------
Exdevon's Profile:
http://www.excelforum.com/member.php...o&userid=32108
View this thread: http://www.excelforum.com/showthread...hreadid=518654



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,073
Default Msg Box input string

Hi Exdevon,
Use either VB's InputBox function or Excel's Application.Inputbox
function.
Application.InputBox is convenient because you can specify the input
with the Type argument, Type:=2 causes input that is not text string to
be rejected.
Ken Johnson

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 avoid duplicate string value input in one column? Wavelet Excel Worksheet Functions 1 March 30th 07 05:04 AM
Msg Box input string Exdevon Excel Programming 2 March 3rd 06 03:10 PM
Want to input one character to cause related string to display in. Peace of Christ be with you Excel Worksheet Functions 6 February 20th 05 06:33 AM
autofilter using string input KT[_3_] Excel Programming 3 October 28th 04 02:42 PM
String length of Inputbox user input. Hersh Excel Programming 2 July 14th 03 08:47 PM


All times are GMT +1. The time now is 02:30 AM.

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"