Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default InputBox options

Greetings !

I have this code -

Ans = InputBox("Enter 1 for " & Text1 & vbCrLf & _
" 2 for " & Text2 & vbCrLf & _
" or 3 for " & Text3," Select choice" )

What I would prefer is to have displayed in the box three
labelled buttons, such that the user can more easily
select a choice.

Suggestions as to the easiest way to achieve this would be
welcome.

I have NEVER yet used a "form",
so that would be "a whole new ball-game" ("can o' worms" ?)
that I would prefer to avoid !

RClayAThaswellDOTcom
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default InputBox options

I don't think this is possible without using your own
userform

Rog


-----Original Message-----
Greetings !

I have this code -

Ans = InputBox("Enter 1 for " & Text1 & vbCrLf & _
" 2 for " & Text2 & vbCrLf & _
" or 3 for " & Text3," Select choice" )

What I would prefer is to have displayed in the box three
labelled buttons, such that the user can more easily
select a choice.

Suggestions as to the easiest way to achieve this would

be
welcome.

I have NEVER yet used a "form",
so that would be "a whole new ball-game" ("can o'

worms" ?)
that I would prefer to avoid !

RClayAThaswellDOTcom
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default InputBox options

As Rog said, you really need a userform for this and it isn't that hard:
Here are some sources of information.

http://www.microsoft.com/ExcelDev/Articles/sxs11pt1.htm
Lesson 11: Creating a Custom Form
Excerpted from Microsoft® Excel 97 Visual Basic® Step by Step.

http://support.microsoft.com/default.aspx?kbid=161514
XL97: How to Use a UserForm for Entering Data

http://support.microsoft.com/default.aspx?kbid=213749
XL2000: How to Use a UserForm for Entering Data

http://support.microsoft.com/default...;EN-US;Q168067
File Title: Microsoft(R) Visual Basic(R) for Applications Examples for
Controlling UserForms in Microsoft Excel 97
File Name: WE1163.EXE
File Size: 161742 bytes
File Date: 05/08/97
Keywords: kbfile
Description: This Application Note is an introduction to manipulating
UserForms in Microsoft Excel 97. It includes examples and Microsoft Visual
Basic for Applications macros that show you how to take advantage of the
capabilities of UserForms and use each of the ActiveX controls that are
available for UserForms

Peter Aiken Articles:
Part I
http://msdn.microsoft.com/library/en...FormsPartI.asp
Part II
http://msdn.microsoft.com/library/en...ormsPartII.asp

--
Regards,
Tom Ogilvy



"Robin Clay" wrote in message
...
Greetings !

I have this code -

Ans = InputBox("Enter 1 for " & Text1 & vbCrLf & _
" 2 for " & Text2 & vbCrLf & _
" or 3 for " & Text3," Select choice" )

What I would prefer is to have displayed in the box three
labelled buttons, such that the user can more easily
select a choice.

Suggestions as to the easiest way to achieve this would be
welcome.

I have NEVER yet used a "form",
so that would be "a whole new ball-game" ("can o' worms" ?)
that I would prefer to avoid !

RClayAThaswellDOTcom



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default InputBox options


Thank you, Tom and Rog, for your help.

I guess I had better start to learn about
UserForms....<Sigh

And Thank you, Tom, for your help yesterday - I sent a
thank you to your msn address, but it bounced....


-----Original Message-----
As Rog said, you really need a userform for this and it

isn't that hard:
Here are some sources of information.

http://www.microsoft.com/ExcelDev/Articles/sxs11pt1.htm
Lesson 11: Creating a Custom Form
Excerpted from Microsoft® Excel 97 Visual Basic® Step by

Step.

http://support.microsoft.com/default.aspx?kbid=161514
XL97: How to Use a UserForm for Entering Data

http://support.microsoft.com/default.aspx?kbid=213749
XL2000: How to Use a UserForm for Entering Data

http://support.microsoft.com/default.aspx?scid=KB;EN-

US;Q168067
File Title: Microsoft(R) Visual Basic(R) for Applications

Examples for
Controlling UserForms in Microsoft Excel 97
File Name: WE1163.EXE
File Size: 161742 bytes
File Date: 05/08/97
Keywords: kbfile
Description: This Application Note is an introduction to

manipulating
UserForms in Microsoft Excel 97. It includes examples and

Microsoft Visual
Basic for Applications macros that show you how to take

advantage of the
capabilities of UserForms and use each of the ActiveX

controls that are
available for UserForms

Peter Aiken Articles:
Part I
http://msdn.microsoft.com/library/en-

us/dnoffpro01/html/IntroductiontoUserFormsPartI.asp
Part II
http://msdn.microsoft.com/library/en-

us/dnoffsol02/html/IntroductiontoUserFormsPartII.asp

--
Regards,
Tom Ogilvy



"Robin Clay" wrote

in message
...
Greetings !

I have this code -

Ans = InputBox("Enter 1 for " & Text1 & vbCrLf & _
" 2 for " & Text2 & vbCrLf & _
" or 3 for " & Text3," Select

choice" )

What I would prefer is to have displayed in the box

three
labelled buttons, such that the user can more easily
select a choice.

Suggestions as to the easiest way to achieve this would

be
welcome.

I have NEVER yet used a "form",
so that would be "a whole new ball-game" ("can o'

worms" ?)
that I would prefer to avoid !

RClayAThaswellDOTcom



.

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
tools options view window options Joe[_14_] Excel Discussion (Misc queries) 1 November 11th 09 04:08 PM
InputBox GeorgeJ Excel Discussion (Misc queries) 5 July 12th 07 01:20 AM
inputbox brownti via OfficeKB.com Excel Discussion (Misc queries) 2 February 9th 07 02:37 PM
Inputbox with VBA Jeff Excel Discussion (Misc queries) 3 January 19th 06 05:18 PM
inputbox Lawson Excel Programming 2 October 7th 03 08:58 PM


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