İyi akşamlar. Aşağıda kod ile kapalı dosyalardan veri kopyalıyorım. Kodu makro kaydet ile elde ettim. Bu koda yazım düzeni (ilk harfler büyük) ve metini sola hizla ekleme yapılabilirmi?
If copy_flag Then
s1.Range("a1:r500").Select
Excel_Uygulama.Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Excel_Uygulama.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Excel_Uygulama.Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Son = s1.Range("C:C").Cells.SpecialCells(xlCellTypeConstants).Count
If copy_flag Then
s1.Range("a1:r500").Select
Excel_Uygulama.Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Excel_Uygulama.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Excel_Uygulama.Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Excel_Uygulama.Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Son = s1.Range("C:C").Cells.SpecialCells(xlCellTypeConstants).Count
