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: 16
Default Copying Problem



Hi all,

I recorded the macro below which runs fine until I attach
it to commandbutton6 on my spreadsheet

I get the following error message on

Range ("A1"). Select

"Select method of range class failed"

I have included macro below, any ideas? Thanks for your
help !

Michael


Private Sub CommandButton6_Click()
With ActiveSheet
Cells.Select
Selection.Copy
Sheets("Cashflow Chart Sheet").Select
Range("A1").Select
Selection.PasteSpecial Paste:=xlAll,
Operation:=xlNone, SkipBlanks:=False _
, Transpose:=False
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _

False, Transpose:=False
Range("A2:I7").Select
Application.CutCopyMode = False
Selection.Clear
ActiveWindow.SmallScroll Down:=13
Range("A29:I29").Select
Selection.ClearContents
ActiveWindow.LargeScroll Down:=-1
Range("D13").Select
Selection.ClearContents
Range("A1").Select
End With
End Sub

 
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
problem copying formulas Dan in Anchorage Excel Discussion (Misc queries) 1 February 17th 09 07:55 PM
Copying formulas - problem with the sum dac Excel Worksheet Functions 1 August 3rd 07 03:52 PM
Copying problem MartinW Excel Worksheet Functions 7 April 14th 06 06:12 PM
Copying worksheet problem owl37 Excel Discussion (Misc queries) 0 January 10th 06 10:09 AM
Cell Copying Problem kola5567 Excel Discussion (Misc queries) 4 September 12th 05 08:23 PM


All times are GMT +1. The time now is 12:26 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"