Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Why is the following not valid? Code ------------------- Selection.EntireRow.Past ------------------- To understand the code in context, I have just copied a row using th EntireRow property and I am now pasting it into another row, except i is not working. Anyone have any suggestions -- Raman32 ----------------------------------------------------------------------- Raman325's Profile: http://www.excelforum.com/member.php...fo&userid=2474 View this thread: http://www.excelforum.com/showthread.php?threadid=38322 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hard to be sure without seeing the code, but I suspect you are pasting into a
cell that is not in column A. If you are doing this it will fail since the "entire row" contains cells (blank ones count!) that would have to be pasted beyond the upper limit of the worksheet columns. This happens if you do it manually, too (select a row, copy, and paste into a cell in B and you will see). If this is indeed the reason it fails, paste into the destination cell's ..EntireRow and it should work. "Raman325" wrote: Why is the following not valid? Code: -------------------- Selection.EntireRow.Paste -------------------- To understand the code in context, I have just copied a row using the EntireRow property and I am now pasting it into another row, except it is not working. Anyone have any suggestions? -- Raman325 ------------------------------------------------------------------------ Raman325's Profile: http://www.excelforum.com/member.php...o&userid=24748 View this thread: http://www.excelforum.com/showthread...hreadid=383224 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The EntireRow property should work even if the Selection column is not
A. I can think of one possibility where the EnitreRow can fail. If the the row contains merged cells is some format. This would mean that the paste action cannot change a part of the destination merged cells. However, it is tough to tell why without looking at the code and the sheet layout. Regards, Jayant |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() That fixed it Anil, thank you very much. I also appreciate the comments and suggestions from jjk and K Dales. -- Raman325 ------------------------------------------------------------------------ Raman325's Profile: http://www.excelforum.com/member.php...o&userid=24748 View this thread: http://www.excelforum.com/showthread...hreadid=383224 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() can you paste the complete cod -- anilsolipura ----------------------------------------------------------------------- anilsolipuram's Profile: http://www.excelforum.com/member.php...fo&userid=1627 View this thread: http://www.excelforum.com/showthread.php?threadid=38322 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can you change the default paste method? (paste values) | Excel Discussion (Misc queries) | |||
Paste method error in macro | Excel Discussion (Misc queries) | |||
Method 'Paste' of object '_Worksheet' failed | Excel Discussion (Misc queries) | |||
Cut and Paste using Macro gives paste special method error | Excel Programming | |||
Looking for faster method for Copy & Paste | Excel Programming |