Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
paste special does not work
why the paste special brings an error message : runtime error 1004:
Pastespecial method of range class failed Private Sub CommandButton3_Click() Dim recordnumber As String Dim a, b, c As String Dim recordno As Integer recordno = countrecords + 1 a = "A" & recordno b = "HO" & recordno c = a & ":" & b For Each cell In Worksheets("Intro Page").Range("K63:K103") If cell.Value = "" Then cell.Value = Worksheets("Temporary Record").Range("B1") Exit For End If Next cell Worksheets("Temporary Record").Activate Worksheets("Temporary Record").Range("B1:B223").Select Selection.Cut Worksheets("Saved Records").Activate Worksheets("Saved Records").Range(c).Select Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=True End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
paste special does not work
because of that:
"Selection.Cut " try to make cut and paste special during standard "hand" sheet processing... |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
paste special does not work
don't worry
i found the solution... no paste special when you cut the cells. dohh!!!! "Panagiotis Marantos" wrote: why the paste special brings an error message : runtime error 1004: Pastespecial method of range class failed Private Sub CommandButton3_Click() Dim recordnumber As String Dim a, b, c As String Dim recordno As Integer recordno = countrecords + 1 a = "A" & recordno b = "HO" & recordno c = a & ":" & b For Each cell In Worksheets("Intro Page").Range("K63:K103") If cell.Value = "" Then cell.Value = Worksheets("Temporary Record").Range("B1") Exit For End If Next cell Worksheets("Temporary Record").Activate Worksheets("Temporary Record").Range("B1:B223").Select Selection.Cut Worksheets("Saved Records").Activate Worksheets("Saved Records").Range(c).Select Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=True End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
why don't my functions in paste special work? | Excel Worksheet Functions | |||
Paste special into a filtered work sheet | Excel Worksheet Functions | |||
How does the PASTE.SPECIAL function work? | Excel Discussion (Misc queries) | |||
Paste Special won't work in VBA | Excel Programming |