Hi all so I have a worksheet with 100's of rows filled in via a Userform. I was just adding some references to the worksheet and noticed there are two rows that have not written over the formatting I set in the 'writedatatoworksheet' sub in two of the columns (strangely on every other row it has been formatted correctly)
I've checked the worksheet formatting and also all the subs formatting and its all ok but again its just these two row columns that are wrong.
In order to quickly fix the two problem rows I thought a quick way would be to simply create a new sub that writes to a specific row, In my case row 17 and row 71 columns 3 and 4 and re enter the relevant data.
What I have at the moment is
Is there a way to reference the actual row number I want to correct?
Thanks Paul
I've checked the worksheet formatting and also all the subs formatting and its all ok but again its just these two row columns that are wrong.
In order to quickly fix the two problem rows I thought a quick way would be to simply create a new sub that writes to a specific row, In my case row 17 and row 71 columns 3 and 4 and re enter the relevant data.
What I have at the moment is
VBA Code:
Private Sub WriteDataToSheetSales()
With sh4Sales.Range("A3").Offset(m_currentRow)
.Cells(1, 3).Value = txbTotalSaleAmount.Value
.Cells(1, 4).Value = txbPostagePaid.Value
End With
End Sub
Is there a way to reference the actual row number I want to correct?
Thanks Paul