Serial InputBox boxes and skipping

DThib

Active Member
Joined
Mar 19, 2010
Messages
464
Office Version
  1. 365
Platform
  1. Windows
I have a problem I created and am not sure if it is even possible to accomplish what I am trying.
I have one function of my workbook putting activated by a button macro that goes into a series of inputbox arguments.
Big problem is, if the information does not need updating, is there away to tell the result to leave the data the InputBox is pointing to?

The argument so far is as follows:
Code:
Sub LotBt()
Dim FilenametxtA, Filenametxt1 As Object
Dim a As Variant


    FilenametxtA = InputBox("Please Enter the Run Date for the Assays")
     If FilenametxtA <> "" Then Sheets(RUN_setup)(N20).Value = Sheets(RUN_setup)(N20)
          Range("N20").Value = FilenametxtA
    Filenametxt1 = InputBox("Please Enter Kit Lot Number below")
     If Not Filenametxt1 <> "" Then Range("p23").Value = Range("p23")
     End If
      
End Sub<strike></strike>
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
One way to approach this issue is to specify the default value for the inputbox

Code:
FilenametxtA = InputBox("Please Enter", default:=Range("N20").Text)
'...
Range("N20").Value = FinenametxtA
 
Last edited:
Upvote 0
That worked beautifully.
Thank you!

InputBoxes are an area I have done very little work in. I appreciate the assist.

D Thib
 
Last edited:
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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