Gos-C
Active Member
- Joined
- Apr 11, 2005
- Messages
- 258
- Office Version
- 365
- 2016
- Platform
- Windows
Hi all,
Can someone please help me with the following code. I need to include the additional lines in the MsgBox.
Thank you,
Gos-C
Can someone please help me with the following code. I need to include the additional lines in the MsgBox.
Code:
Sub GetSampleSize()
Dim sSize As String
ThisWorkbook.FollowHyperlink Address:="http://www.raosoft.com/samplesize.html", NewWindow:=True
MsgBox "Enter the following numbers"
'I need to include the following lines in the message:
'
' What margin of error can you accept? 2
' What confidence level do you need? 95
' What is the population size? [Show value of cell EI1]
' What is the response distribution? 2
sSize = Application.InputBox(Prompt:="Please enter the number shown in the Sample Size Calculator for 'Your recommended sample size is'", _
Title:="ENTER SAMPLE SIZE", Type:=1)
If sSize = vbNullString Then
Exit Sub
End If
Range("EK1").Value = sSize
End Sub
Thank you,
Gos-C