Still trying to learn VBA and reached a stumbling block as I'm trying to build out a Mark to Market report. I have a 3rd party source that gives pricing which I'm wanting the user to enter into spreadsheet via input box. I have code that will allow them to just put in values going down the column, but would like to have code that reads the Contract Month dates that appear for Market Zone 'A'. Example: There are contract months associated with A for : Jan-2019; Apr-2019; May-2019). Message box will prompt what period's price they should enter.
Also, my code currently is displaying values going down and continues on down each time a new mark is entered. Is there a way to have a daily entry coded, with entry date as a header, that will start fresh values the next time you press the Enter Marks command button?
Any help/tips a VBA pro could give me would immensely appreciated.
Dropbox Link: https://www.dropbox.com/s/xkm34h2bhpzfxxb/Dashboard (1).xlsm?dl=0
Current Code:
Also, my code currently is displaying values going down and continues on down each time a new mark is entered. Is there a way to have a daily entry coded, with entry date as a header, that will start fresh values the next time you press the Enter Marks command button?
Any help/tips a VBA pro could give me would immensely appreciated.
Dropbox Link: https://www.dropbox.com/s/xkm34h2bhpzfxxb/Dashboard (1).xlsm?dl=0
Current Code:
Code:
Private Sub CommandButton8_Click()
Dim lngLstRow&
Dim strMyIPBMsg$
strMyIPBMsg = InputBox("Add Rates:", "Need Rate!")
With Sheets("Shuttle Marks")
lngLstRow = .UsedRange.Rows.Count + .UsedRange.Row
.Range("A" & lngLstRow).Value = strMyIPBMsg
End With
Sheets("Shuttle Marks").Select
End Sub