Hello,
Newbie here. I have a quick question about formatting cells after a value has been applied to a cell.
Here is a sample code of what my userform looks like:
Code
'Requires data to be entered
If Me.cboSubmittedBy.Value = "" Or Me.txtDateSubmitted.Value = "" Or Me.txtReqNo.Value = "" Or Me.Arow1.Value = "" Then
MsgBox "All Fields Must Be Completed"
'Copy data to table
Else
Set iRow = ActiveWorkbook.Worksheets("ReqLog").Cells(Rows.Count, 5).End(xlUp).Offset(1, 0)
If Me.Arow1.Value > "" Then
For X = 1 To 6
iRow = Me.Controls("Arow" & X).Value
Set iRow = iRow.Offset(0, 1)
Next
End If
SetEntry 'A sub that adds date and time on same row.
Set iRow = ActiveWorkbook.Worksheets("ReqLog").Cells(Rows.Count, 5).End(xlUp).Offset(1, 0)
If Me.Brow1.Value > "" Then
For X = 1 To 6
iRow = Me.Controls("Brow" & X).Value
Set iRow = iRow.Offset(0, 1)
Next
End If
SetEntry 'A sub that adds date and time on same row.
.......etc
Display More
After each value is inserted to a cell, I need the text to be indent twice, make the cell row height larger, format the text a certain font and color, and other particular formatting.
I'm not sure how I can do this because there is a loop and the books I have don't cover this.
Any help is appreciated, thanks!