Input pop box in excel

Craig_Moore

Board Regular
Joined
Dec 12, 2018
Messages
64
Office Version
  1. 2019
Platform
  1. Windows
Hi

I have created a sheet within excel 2016 which brings up several popup box asking questions to the user to so no information is forgotten to be inputted in to the sheet, but if I input a figure in to the input box above 32,000 an error is shown overflow (error 6) is there away round this as most days I would require a figure over 500,000, any guidance would be happily received

thanks

Craig Moore

Code that I am using is
Private Sub CommandButton1_Click()
Dim QtyEntry As Integer
Dim msg As String
Dim msg2 As String
Dim msg3 As String
Dim msg4 As String
Dim msg5 As String
Dim msg6 As Integer
Dim msg7 As String
Dim msg8 As String


msg = "WHAT IS CV 1&2 BATCH SIZE"
QtyEntry = InputBox(msg)
ActiveSheet.Range("O4").Value = QtyEntry


msg2 = "HOW MANY BATCHES WERE MADE IN CV 1&2"
QtyEntry = InputBox(msg2)
ActiveSheet.Range("F4").Value = QtyEntry


msg3 = "HOW MANY BATCHS WERE MADE IN CV3"
QtyEntry = InputBox(msg3)
ActiveSheet.Range("F6").Value = QtyEntry


msg4 = "WHAT IS CV 3 BATCH SIZE"
QtyEntry = InputBox(msg4)
ActiveSheet.Range("O6").Value = QtyEntry


msg5 = "WHAT IS THE JAR SIZE"
QtyEntry = InputBox(msg5)
ActiveSheet.Range("K10").Value = QtyEntry


'msg6
Worksheets("yeild Loss Or gain Calculator").Range("jars_filled") = InputBox("WHAT IS Filler Count?", msg6)


msg7 = "HOW MANY KG IS IN THE BUFFER"
QtyEntry = InputBox(msg7)
ActiveSheet.Range("F11").Value = QtyEntry


End Sub
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Change "Dim QtyEntry As Integer" to "Dim QtyEntry As Long" same for "msg6 As Integer"
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,514
Messages
6,114,078
Members
448,547
Latest member
arndtea

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