I am getting this error while trying to update cells in a worksheet from my textbox values on a form.
It fails on the line: .Cells(newRow, 1).Value = txtMemberId.Value
I have a copy of MSOffice 2019 professional but I keep getting the product is not genuine warning which I am not sure why because it should be genuine. I tried repairing and re-installing the office 2019 app but still getting the error.
So I am considering just updating to Office 365 to see if it fixes it, but I am wondering why this is necessary when I already purchased 2019 version.
Also, another related question is, If I am developing VBA/Excel applications, that could potentially be installed on a variety of client machines with different versions of windows or excel, what version of excel/office should I develop my apps on. What is the best practice for this situation?
VBA Code:
Private Sub WriteDataToSheet()
Dim newRow As Long
With shMembers
newRow = .Cells(.Rows.Count, 1).End(xlUp).row + 1
.Cells(newRow, 1).Value = txtMemberId.Value
.Cells(newRow, 2).Value = txtLastName.Value
.Cells(newRow, 3).Value = txtFirstName.Value
End With
End Sub
It fails on the line: .Cells(newRow, 1).Value = txtMemberId.Value
I have a copy of MSOffice 2019 professional but I keep getting the product is not genuine warning which I am not sure why because it should be genuine. I tried repairing and re-installing the office 2019 app but still getting the error.
So I am considering just updating to Office 365 to see if it fixes it, but I am wondering why this is necessary when I already purchased 2019 version.
Also, another related question is, If I am developing VBA/Excel applications, that could potentially be installed on a variety of client machines with different versions of windows or excel, what version of excel/office should I develop my apps on. What is the best practice for this situation?
Last edited by a moderator: