Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I'm trying to paste text into some cells (in column B) and then merge with cells C through I. The paste command works, but I get an error on the select line. I don't know why I can't select that range. With ActiveSheet ..Range("B35").PasteSpecial ..Range("C35", Range("I35").End(xlDown)).Select ..Selection.ClearContents ..Selection.Merge (True) End With Thanks for any help. -- agentsmith83 ------------------------------------------------------------------------ agentsmith83's Profile: http://www.excelforum.com/member.php...o&userid=33600 View this thread: http://www.excelforum.com/showthread...hreadid=533770 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Range expects an address, not a range object. Try this...
..Range("C35", Range("I35").End(xlDown).address).Select -- HTH... Jim Thomlinson "agentsmith83" wrote: I'm trying to paste text into some cells (in column B) and then merge with cells C through I. The paste command works, but I get an error on the select line. I don't know why I can't select that range. With ActiveSheet .Range("B35").PasteSpecial .Range("C35", Range("I35").End(xlDown)).Select .Selection.ClearContents .Selection.Merge (True) End With Thanks for any help. -- agentsmith83 ------------------------------------------------------------------------ agentsmith83's Profile: http://www.excelforum.com/member.php...o&userid=33600 View this thread: http://www.excelforum.com/showthread...hreadid=533770 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with this error Unknown reason for error with Range().Select | Excel Programming | |||
Runtime Error 1004 Select method of Range class Failed | Excel Programming | |||
Range Select Error | Excel Programming | |||
Run-time 1004 error on range select | Excel Programming | |||
error 1004 Select method of Range class failed | Excel Programming |