Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default List box in macro

Hi,

I have a macro attached to a button, as follows.

Worksheets("Concern Log").Range("H" & CurrentRow) = InputBox(["Please
enter Nunber of affected parts"], ["QTY"])
Worksheets("Concern Log").Range("I" & CurrentRow) = ListBox(["Please
enter Fault Description"], ["FAULT DESCRIPTION"])
Worksheets("Concern Log").Range("J" & CurrentRow) = InputBox(["Please
enter QRE Action"], ["QRE ACTION"])

This works fine, however instead of entering data in an Input Box, I
would like a list box so I can select data from a specific list. At
the end of the month when we review and sort data, if the descriptions
are not the same it skews the results.I.e (some write cork spli,
others write splitting cork)

I have tried typing in ListBox, but of course there is no way of
setting it up ect. Can anyone help.

Duncan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default List box in macro

have you tried type 8 in a input box?


Do
Set Response = Application.InputBox("Select cell", Type:=8)
If Not Application.Intersect(Validrange, Response) Is Nothing Then
MsgBox ("Ivalid Response, Please select your range again")
End If
Loop While Not Application.Intersect(Validrange, Response) Is Nothing

"Decreenisi" wrote:

Hi,

I have a macro attached to a button, as follows.

Worksheets("Concern Log").Range("H" & CurrentRow) = InputBox(["Please
enter Nunber of affected parts"], ["QTY"])
Worksheets("Concern Log").Range("I" & CurrentRow) = ListBox(["Please
enter Fault Description"], ["FAULT DESCRIPTION"])
Worksheets("Concern Log").Range("J" & CurrentRow) = InputBox(["Please
enter QRE Action"], ["QRE ACTION"])

This works fine, however instead of entering data in an Input Box, I
would like a list box so I can select data from a specific list. At
the end of the month when we review and sort data, if the descriptions
are not the same it skews the results.I.e (some write cork spli,
others write splitting cork)

I have tried typing in ListBox, but of course there is no way of
setting it up ect. Can anyone help.

Duncan

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 Create a macro from drop down list (Validation List) in excel [email protected] Excel Programming 0 October 31st 06 12:42 PM
delete a macro that isn't in macro list Jane Makinson Excel Discussion (Misc queries) 3 March 13th 06 01:10 PM
Display a macro at top of macro list? StargateFanFromWork[_3_] Excel Programming 1 January 4th 06 12:37 PM
How to create a macro that compares a list to another list Rampa New Users to Excel 1 January 13th 05 01:15 PM
Show Macro list (tools-macro-macros) Hafeez Esmail Excel Programming 5 December 31st 03 09:54 PM


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