Message Prompt

lbargers

New Member
Joined
Mar 28, 2006
Messages
27
Hi All,

I have an excel spreadsheet that I am using automate data accross to an ms access database. A feature that I have installed is a input box to retrieve a testers comments. The problem is the input box only allows for up to 255 characters, some of the comments I am needing to capture are up to 500 chars. Is there anyway to pull up a form with a textbox on it within excel?

Code:
Private Sub messagePrompt(rowNum As Integer, colNum As Integer)
 
    Dim Message, Title, Default, MyValue
    
    Default =""
    Message = "Please enter comments for this question:"    ' Set prompt.
    Title = "Tester Comments"    ' Set title.
    
    MyValue = InputBox(Message, Title, Default)
            
End Sub

Thanks,

Larry
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Heya Larry, how about instead of calling the Input Box, just call the UF-->UserForm1.Show.

You can mimic the Input Box to look almost native, but with an expanded length to accomodate a larger than usual text box.

HTH,

Smitty
 
Upvote 0
Hey Smitty,

Thanks for the reply. I just built a user form (frmComments) but i am not sure how to call it from my worksheet.

I tried frmComments.show and I get an error "Variable not Defined"

Larry
 
Upvote 0
What's the code you're using to call it?

This will work fine:

Code:
Sub foo()
    frmComments.Show
End Sub

Smitty
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top