And when trying to put the data into a new spreadsheet it is not working?
Private Sub PhoneInternet_Enter()
InputForm.PhoneInternet.AddItem ("Internet")
InputForm.PhoneInternet.AddItem ("Phone")
InputForm.PhoneInternet = ""
InputForm.PhoneInternet.MatchRequired = True
End Sub
Private Sub SizeContract_Enter()
InputForm.SizeContract.AddItem ("1000")
End Sub
Private Sub UpdateButton_Click()
InputSheetName = "Writing"
StockCodeValue = InputForm.StockCode.Value
StrikePriceValue = InputForm.StrikePrice.Value
TransactionDateValue = InputForm.TransactionDate.Value
PremiumValue = InputForm.Premium.Value
OptionCodeValue = InputForm.OptionCode.Value
PhoneInternetValue = InputForm.PhoneInternet.Value
NoContracts = InputForm.NoContracts.Value
SizeContract = InputForm.SizeContract.Value
ExpiryDate = InputForm.ExpiryDate.Value
ActiveWorkbook.Worksheets(InputSheetNa...
Dim Home As Range
Set Home = Range("A1")
Home.Offset(3, 0).Select
Range(Selection, Selection.End(xlToRight)).Select
Dim NumColsUsed As Integer
NumColsUsed = Selection.Columns.Count
Home.Offset(0, NumColsUsed).Value = StockCodeValue
Home.Offset(6, NumColsUsed).Value = StrikePriceValue
Home.Offset(4, NumColsUsed).Value = TransactionDateValue
Home.Offset(9, NumColsUsed).Value = PremiumValue
Home.Offset(1, NumColsUsed).Value = OptionCodeValue
Home.Offset(3, NumColsUsed).Value = PhoneInternetValue
Home.Offset(7, NumColsUsed).Value = NoContractsValue
Home.Offset(8, NumColsUsed).Value = SizeContractValue
Home.Offset(5, NumColsUsed).Value = ExpiryDateValue
End Sub
Tags: