error 438

jaianth2011jan

New Member
Joined
Jan 15, 2011
Messages
4
Dear all,

In the Macro code given below,

Public Sub sortet()
Dim a As Integer

Range("U6:U12").Select
Selection.Copy
Range("U13").Select
Selection.Paste
<label for="rb_iconid_4">
icon4.gif
</label>

End Sub

in the above sub-procedure
the selection.paste showing error no 438
with a message "object doesn't support this property or method"

Please let me know what the problem is? as soon as possible.

Regards,

Jayanth.M
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi

Paste is a method of the Worksheet, not the Range so you need this:

Rich (BB code):
Public Sub sortet()
Dim a As Integer

Range("U6:U12").Select
Selection.Copy
Range("U13").Select
Activesheet.Paste


End Sub
 
Upvote 0
Try:
Code:
Public Sub sortet()
Dim a As Integer

Range("U6:U12").Copy Range("U13")
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,816
Members
449,469
Latest member
Kingwi11y

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top