Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i get an inconsistent error... more like a fluke.... that happens once in a
blue moon. The code below results in an incomplete paste. Only the 1st cell is pasted and the rest are blank?!!! 'copy dataWS.Activate Set xlrng = dataWS.Range(dataWS.Cells(Row, 5), dataWS.Cells(Row, 256)) xlrng.Select Application.CutCopyMode = False Selection.Copy 'paste xlws.Activate xlws.Cells(writerow, 1).Select ActiveSheet.Paste Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Ideas anyone? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
'copy
dataWS.Activate Set xlrng = dataWS.Range(dataWS.Cells(Row, 5), dataWS.Cells(Row, 256)) xlrng.Select Application.CutCopyMode = False Selection.Copy 'paste xlws.Activate xlws.Cells(writerow, 1).Select On Error Resume Next ActiveSheet.Paste Selection.PasteSpecial Paste:=xlPasteValues, _ Operation:=xlNone, _ SkipBlanks:=False, _ Transpose:=False ' if err.Number < 0 then ' msgbox "Selection can not be pasted" ' end if on Error goto 0 -- Regards, Tom Ogilvy "vbadude" wrote: i get an inconsistent error... more like a fluke.... that happens once in a blue moon. The code below results in an incomplete paste. Only the 1st cell is pasted and the rest are blank?!!! 'copy dataWS.Activate Set xlrng = dataWS.Range(dataWS.Cells(Row, 5), dataWS.Cells(Row, 256)) xlrng.Select Application.CutCopyMode = False Selection.Copy 'paste xlws.Activate xlws.Cells(writerow, 1).Select ActiveSheet.Paste Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Ideas anyone? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy and paste problem Excel 2007 | Excel Discussion (Misc queries) | |||
memory problem of Excel 2003 copy & paste | Excel Discussion (Misc queries) | |||
Excel copy/paste problem | Excel Discussion (Misc queries) | |||
Excel Copy/Paste Problem | Excel Discussion (Misc queries) | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) |