Userform Data to excel sheet along with specific row formatting

RAKESH230583

New Member
Joined
Jan 10, 2011
Messages
46
Dear All,

With the help of below codes, I am able to transfer userform Data to excel sheet name, "Extension Details".

But, while data are getting captured in sheet name "Extension Details", Colour and other formats are not same for every new addition. I want formatting for all new addition, to be same like A3:K3.

One solution is that to convert the range in Table - But then, if I do that, I cant make that excel as share workbook.

Code:
Dim Rw As Long
Dim Ws As Worksheet

Set Ws = Worksheets("Extenstion Details")
Rw = Sheets("Extension Details").Range("A" & Rows.Count).End(xlup).Row

With Ws
.Cells(Rw + 1,1).value = Me.Dtpicker1.value
'And other 11 in above same line
End With
End Sub
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top