DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub test()
Dim i As Long, j As Integer, deg As String, ayrc As String, alan
Open ThisWorkbook.Path & "\" & "deneme" & ".txt" For Output As #1
alan = Split(Range("A1:D7").Address, ":")
For i = Range(alan(0)).Row To Range(alan(1)).Row
deg = ""
For j = Range(alan(0)).Column To Range(alan(1)).Column
If Cells(i, j) <> "" Then
ayrc = vbTab
If deg = "" Then ayrc = ""
deg = deg & ayrc & Cells(i, j)
End If
Next j
If deg <> "" Then Print #1, deg
Next i
Close #1
End Sub
Sub test()
Dim i As Long, j As Integer, deg As String, deg1 As String, ayrc As String, alan, frmt, obj As Object
Set obj = CreateObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")
alan = Split(Range("A1:D7").Address, ":")
For i = Range(alan(0)).Row To Range(alan(1)).Row
deg = ""
For j = Range(alan(0)).Column To Range(alan(1)).Column
If Cells(i, j) <> "" Then
ayrc = vbTab
If deg = "" Then ayrc = ""
frmt = Cells(i, j).NumberFormat
If frmt = "General" Then frmt = ""
deg = deg & ayrc & Format(Cells(i, j), frmt)
End If
Next j
ayrc = Chr(10)
If deg1 = "" Then ayrc = ""
If deg <> "" Then deg1 = deg1 & ayrc & deg
Next i
obj.SetText deg1
obj.PutInClipboard
End Sub