hi.. I'm not a professional programmer, but do build programs to assist at work.
The following is part of a program I use in Excel to keep
meeting minutes. It is a macro to search through all rows,
and pull all open items of business, and append to a new
sheet. What is happening is the cut or paste is limiting
the number of characters to 255. (not a cell limit)
I am using excel 2003.
Is there a way to get around this. (snippet below)
'********************************************
Sub GET_OPEN_ITEMS()
Dim myRange As Range
Dim myString As String
Dim SrcRowCtr As Integer
Dim DestRowCtr As Integer
Dim myDate As String
Dim myReport As String
Dim DestRng As String
Dim myCell As String
DestRowCtr = 3
'2008
Sheets("2008").Select
ActiveSheet.Outline.ShowLevels RowLevels:=2
For SrcRowCtr = 3 To 209
If Cells(SrcRowCtr, 10) = "OP" Then
myString = SrcRowCtr & ":" & SrcRowCtr
Range(myString).Select
Range(myString).EntireRow.Copy
DoEvents
Sheets("Report").Select
DoEvents
DestRng = "A" & CStr(DestRowCtr) & ":" & "J" & CStr(DestRowCtr)
Range(DestRng).Select
Range(DestRng).PasteSpecial xlPasteAll
DoEvents
DestRowCtr = DestRowCtr + 1
Sheets("2008").Select
End If
Next
ActiveSheet.Outline.ShowLevels RowLevels:=1
'********************************************
The following is part of a program I use in Excel to keep
meeting minutes. It is a macro to search through all rows,
and pull all open items of business, and append to a new
sheet. What is happening is the cut or paste is limiting
the number of characters to 255. (not a cell limit)
I am using excel 2003.
Is there a way to get around this. (snippet below)
'********************************************
Sub GET_OPEN_ITEMS()
Dim myRange As Range
Dim myString As String
Dim SrcRowCtr As Integer
Dim DestRowCtr As Integer
Dim myDate As String
Dim myReport As String
Dim DestRng As String
Dim myCell As String
DestRowCtr = 3
'2008
Sheets("2008").Select
ActiveSheet.Outline.ShowLevels RowLevels:=2
For SrcRowCtr = 3 To 209
If Cells(SrcRowCtr, 10) = "OP" Then
myString = SrcRowCtr & ":" & SrcRowCtr
Range(myString).Select
Range(myString).EntireRow.Copy
DoEvents
Sheets("Report").Select
DoEvents
DestRng = "A" & CStr(DestRowCtr) & ":" & "J" & CStr(DestRowCtr)
Range(DestRng).Select
Range(DestRng).PasteSpecial xlPasteAll
DoEvents
DestRowCtr = DestRowCtr + 1
Sheets("2008").Select
End If
Next
ActiveSheet.Outline.ShowLevels RowLevels:=1
'********************************************