vanphuc1701
Thành viên mới
- Tham gia
- 26/11/06
- Bài viết
- 14
- Được thích
- 3
Post lại. Ai làm ơn giúp UNICODE với!!!!Cảm ơn rất nhiều!! ai làm ơn giúp giùm với
Định DẠNG THẾ NÀO ĐỂ CÓ ĐƯỢC FONT UNICODE
Sub thu()
Range("K2").Value = "BAÛNG THOÁNG KEÂ COÁT THEÙP"
Range("K3").Value = "COÂNG TRÌNH: " + Range("F3").Value
Range("K4").Value = "HAÏNG MUÏC : " + Range("F4").Value
Range("A6").Value = "TEÂN " & Chr(10) & "CAÁU " & Chr(10) & "KIEÄN"
Range("B6").Value = "Soá" & Chr(10) & "CK"
Range("C6").Value = "Kí" & Chr(10) & "hieäu" & Chr(10) & "thanh"
Range("D6").Formula = "Soá" & Chr(10) & "Thanh" & Chr(10) & "1 C.K"
Range("E6").Formula = "Þ"
Range("F6").Value = "QUY CAÙCH (m)"
Range("F7").Value = "a"
Range("G7").Value = "b"
Range("H7").Value = "c"
Range("I6").Value = "HÌNH DAÏNG - KÍCH THÖÔÙC" & Chr(10) & "(Ñôn vò : m)"
Range("J6").Value = "Toång" & Chr(10) & "soá " & Chr(10) & "thanh"
Range("K6").Value = "Chieàu daøi (m)"
Range("K7").Value = "1 Thanh"
Range("L7").Value = "Toaøn boä"
Range("M6").Value = "TROÏNG LÖÔÏNG (kG)"
Range("M7").Value = "Rieâng"
Range("N7").Value = "Þ<=10"
Range("O7").Value = "Þ<=18"
Range("P7").Value = "Þ>18"
Range("Q6").Value = "(STT)"
Range("A6:A7").Merge
Range("B6:B7").Merge
Range("C6:C7").Merge
Range("D67").Merge
Range("E6:E7").Merge
Range("F6:H6").Merge
Range("I6:I7").Merge
Range("J6:J7").Merge
Range("K6:L6").Merge
Range("M66").Merge
Range("Q6:Q7").Merge
Range("k2").Font.Name = "VNI-Gallera"
Range("k3:k4").Font.Name = "VNI-Algerian"
Range("k2").Font.Size = 22
Range("k3:k4").Font.Size = 14
Range("A8:Q1000").UnMerge
' With Selection
'
' .HorizontalAlignment = xlCenter
' .VerticalAlignment = xlBottom
' .WrapText = False
' .Orientation = 0
' .AddIndent = False
' .ShrinkToFit = False
' End With
Range("A9:Q1000").Select
Selection.Validation.Delete
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=$A10<>"""""
With Selection.FormatConditions(1).Borders(xlBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Range("A6:Q7").Borders(xlEdgeLeft).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlEdgeBottom).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlInsideVertical).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlInsideHorizontal).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlEdgeRight).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlEdgeTop).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlEdgeTop).Weight = xlThin
Range("k2:k4").HorizontalAlignment = xlCenter
Range("A6:Q1000").HorizontalAlignment = xlCenter
Range("A6:Q7").VerticalAlignment = xlCenter
Range("A8:Q1000").Font.Name = "VNI-Helve-Condense"
Range("A6:Q7").Font.Name = "VNI-Helve-Condense"
Range("A6:Q7").Font.Size = 12
Range("A8:h1000,j8:Q1000").Font.Size = 11
Range("d6:d7").Font.Size = 11
Range("k66").Font.Size = 14
Range("a8:Q1000").Rows.AutoFit
Range("i8:i1000").Font.ColorIndex = 2
Range("F8:H1000,K81000").Style = "Comma"
Range("I8").ColumnWidth = 28
Range("A8").Select
With Range("E8:E1000").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:= _
"6,8,10,12,14,16,18,20,22,24,25,26,28,30,32,34,36,38,40,42"
.IgnoreBlank = False
.InCellDropdown = True
.ErrorTitle = "Thong bao loi"
.ErrorMessage = _
"Hay nhap phi sat dung chung loai:" & Chr(10) & "6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 25, 26, " & Chr(10) & "28, 30, 32, 34, 36, 38, 40, 42"
.ShowInput = True
.ShowError = True
End With
With Range("b8:b1000").Validation ', "d8:d1000"
.Delete
.Add Type:=xlValidateCustom, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=MOD(B8,1)=0"
.IgnoreBlank = True
.InCellDropdown = True
.ErrorTitle = "THONG BAO LOI"
.ErrorMessage = "Hay nhap so nguyen vao"
.ShowInput = True
.ShowError = True
End With
With Range("d8:d1000").Validation
.Delete
.Add Type:=xlValidateCustom, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=MOD(D8,1)=0"
.IgnoreBlank = True
.InCellDropdown = True
.ErrorTitle = "THONG BAO LOI"
.ErrorMessage = "Hay nhap so nguyen vao"
.ShowInput = True
.ShowError = True
End With
End Sub
Định DẠNG THẾ NÀO ĐỂ CÓ ĐƯỢC FONT UNICODE
Sub thu()
Range("K2").Value = "BAÛNG THOÁNG KEÂ COÁT THEÙP"
Range("K3").Value = "COÂNG TRÌNH: " + Range("F3").Value
Range("K4").Value = "HAÏNG MUÏC : " + Range("F4").Value
Range("A6").Value = "TEÂN " & Chr(10) & "CAÁU " & Chr(10) & "KIEÄN"
Range("B6").Value = "Soá" & Chr(10) & "CK"
Range("C6").Value = "Kí" & Chr(10) & "hieäu" & Chr(10) & "thanh"
Range("D6").Formula = "Soá" & Chr(10) & "Thanh" & Chr(10) & "1 C.K"
Range("E6").Formula = "Þ"
Range("F6").Value = "QUY CAÙCH (m)"
Range("F7").Value = "a"
Range("G7").Value = "b"
Range("H7").Value = "c"
Range("I6").Value = "HÌNH DAÏNG - KÍCH THÖÔÙC" & Chr(10) & "(Ñôn vò : m)"
Range("J6").Value = "Toång" & Chr(10) & "soá " & Chr(10) & "thanh"
Range("K6").Value = "Chieàu daøi (m)"
Range("K7").Value = "1 Thanh"
Range("L7").Value = "Toaøn boä"
Range("M6").Value = "TROÏNG LÖÔÏNG (kG)"
Range("M7").Value = "Rieâng"
Range("N7").Value = "Þ<=10"
Range("O7").Value = "Þ<=18"
Range("P7").Value = "Þ>18"
Range("Q6").Value = "(STT)"
Range("A6:A7").Merge
Range("B6:B7").Merge
Range("C6:C7").Merge
Range("D67").Merge
Range("E6:E7").Merge
Range("F6:H6").Merge
Range("I6:I7").Merge
Range("J6:J7").Merge
Range("K6:L6").Merge
Range("M66").Merge
Range("Q6:Q7").Merge
Range("k2").Font.Name = "VNI-Gallera"
Range("k3:k4").Font.Name = "VNI-Algerian"
Range("k2").Font.Size = 22
Range("k3:k4").Font.Size = 14
Range("A8:Q1000").UnMerge
' With Selection
'
' .HorizontalAlignment = xlCenter
' .VerticalAlignment = xlBottom
' .WrapText = False
' .Orientation = 0
' .AddIndent = False
' .ShrinkToFit = False
' End With
Range("A9:Q1000").Select
Selection.Validation.Delete
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=$A10<>"""""
With Selection.FormatConditions(1).Borders(xlBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Range("A6:Q7").Borders(xlEdgeLeft).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlEdgeBottom).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlInsideVertical).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlInsideHorizontal).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlEdgeRight).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlEdgeTop).LineStyle = xlContinuous
Range("A6:Q7").Borders(xlEdgeTop).Weight = xlThin
Range("k2:k4").HorizontalAlignment = xlCenter
Range("A6:Q1000").HorizontalAlignment = xlCenter
Range("A6:Q7").VerticalAlignment = xlCenter
Range("A8:Q1000").Font.Name = "VNI-Helve-Condense"
Range("A6:Q7").Font.Name = "VNI-Helve-Condense"
Range("A6:Q7").Font.Size = 12
Range("A8:h1000,j8:Q1000").Font.Size = 11
Range("d6:d7").Font.Size = 11
Range("k66").Font.Size = 14
Range("a8:Q1000").Rows.AutoFit
Range("i8:i1000").Font.ColorIndex = 2
Range("F8:H1000,K81000").Style = "Comma"
Range("I8").ColumnWidth = 28
Range("A8").Select
With Range("E8:E1000").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:= _
"6,8,10,12,14,16,18,20,22,24,25,26,28,30,32,34,36,38,40,42"
.IgnoreBlank = False
.InCellDropdown = True
.ErrorTitle = "Thong bao loi"
.ErrorMessage = _
"Hay nhap phi sat dung chung loai:" & Chr(10) & "6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 25, 26, " & Chr(10) & "28, 30, 32, 34, 36, 38, 40, 42"
.ShowInput = True
.ShowError = True
End With
With Range("b8:b1000").Validation ', "d8:d1000"
.Delete
.Add Type:=xlValidateCustom, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=MOD(B8,1)=0"
.IgnoreBlank = True
.InCellDropdown = True
.ErrorTitle = "THONG BAO LOI"
.ErrorMessage = "Hay nhap so nguyen vao"
.ShowInput = True
.ShowError = True
End With
With Range("d8:d1000").Validation
.Delete
.Add Type:=xlValidateCustom, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=MOD(D8,1)=0"
.IgnoreBlank = True
.InCellDropdown = True
.ErrorTitle = "THONG BAO LOI"
.ErrorMessage = "Hay nhap so nguyen vao"
.ShowInput = True
.ShowError = True
End With
End Sub