LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Range.select error

Hello. I'm new to VBA and I've been trying to get a macro that will copy
the row of a selected cell in one sheet (called Recipe Book), and copy
it into another sheet (called Missing Website) on the next blank row. I
found some coding someone posted online and I've been testing it but it
keeps crashing. The following is the code I found. I put an arrow (<--)
on the line where the code crashes. I can't figure out why the
Range("A65536").Select part doesn't work. Any help would be appreciated.
Thanks.

Sub PasteRow()
Application.ScreenUpdating = False
Worksheets("Recipe Book").Select
ActiveCell.EntireRow.Select
Selection.Copy
Worksheets("Missing Website").Select
Range("A65536").Select <--
ActiveSheet.Paste
Application.CutCopyMode = False
Sheets("Recipe Book").Select
ActiveCell.Select
Application.ScreenUpdating = True
End Sub

Note: on the "Range("A65536").Select" line the original code is
"Range("A65536").End(xlUp).Offset(1, 0).Select" but I omitted the code
after "Range("A65536" because it's the "Range("A65536").Select" part
that's not working.

*** Sent via Developersdex http://www.developersdex.com ***
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Range.Select error and screen maximizing error in Workbook_Open() Punsterr Excel Programming 3 May 10th 06 10:16 PM
Range.Select error and screen maximizing error in Workbook_Open() Punsterr Excel Programming 0 May 10th 06 07:56 PM
Can't select range. Why the error? agentsmith83 Excel Programming 1 April 18th 06 04:38 PM
Help with this error Unknown reason for error with Range().Select Brad Sumner Excel Programming 1 September 13th 05 04:24 PM
Range Select Error sailingdan Excel Programming 1 June 14th 04 04:24 PM


All times are GMT +1. The time now is 05:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"