Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default ActiveSheet.Paste (error)

I have performed this recorded macro several times even this week. Now
consistently I get this paste error! Can anyone see why that would happen!

Sub Macro5()
'
' Macro5 Macro
' Macro recorded 8/2/2007 by
'
' Keyboard Shortcut: Ctrl+k
'
ActiveCell.FormulaR1C1 = "1625 SOUTH FEDERAL HWY POMPANO BEACH, FL 33062"
ActiveCell.Offset(-2, 1).Range("A1").Select
ActiveSheet.Paste (Fails
Here)
ActiveCell.Offset(1, 1).Range("A1:B1").Select
Selection.Copy
ActiveCell.Offset(-1, 2).Range("A1").Select
ActiveSheet.Paste
ActiveCell.Offset(1, 0).Rows("1:2").EntireRow.Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
ActiveCell.Offset(2, 0).Range("A1").Select
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default ActiveSheet.Paste (error)

what did you copy before you ran the macro?

"Puzzled" wrote:

I have performed this recorded macro several times even this week. Now
consistently I get this paste error! Can anyone see why that would happen!

Sub Macro5()
'
' Macro5 Macro
' Macro recorded 8/2/2007 by
'
' Keyboard Shortcut: Ctrl+k
'
ActiveCell.FormulaR1C1 = "1625 SOUTH FEDERAL HWY POMPANO BEACH, FL 33062"
ActiveCell.Offset(-2, 1).Range("A1").Select
ActiveSheet.Paste (Fails
Here)
ActiveCell.Offset(1, 1).Range("A1:B1").Select
Selection.Copy
ActiveCell.Offset(-1, 2).Range("A1").Select
ActiveSheet.Paste
ActiveCell.Offset(1, 0).Rows("1:2").EntireRow.Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
ActiveCell.Offset(2, 0).Range("A1").Select
End Sub

Reply
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
How do I name a picture as I paste it from VBA? (ActiveSheet.Past. Leitey Excel Discussion (Misc queries) 4 April 5th 23 01:17 PM
ActiveCell or ActiveSheet Launchnet Excel Worksheet Functions 1 July 20th 07 07:46 PM
ActiveSheet.Paste - Error help? dk_ Excel Discussion (Misc queries) 4 November 20th 06 12:27 AM
Working with Macros-Activesheet.Paste lunar1085 Excel Discussion (Misc queries) 0 February 3rd 06 04:13 PM
Difference between Activesheet.unprotect Dennis Excel Discussion (Misc queries) 2 August 24th 05 01:27 PM


All times are GMT +1. The time now is 01:34 AM.

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

About Us

"It's about Microsoft Excel"