Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Please explain syntax needed

Hi,

Are there anybody out there to explain once and for all the syntax needed. I
often get debugging error claiming "object is missing" or like now with this
simplifyed code below: "Error 1004 Metod Range in object Worksheet failed".

Sub on Sheet 104:

Private Sub Worksheet_Activate()
Sheet112.Range("N29").Copy
Sheet112.Range("C29:G48,C52:G71,C75:G94").PasteSpe cial (xlPasteAll)
End Sub

All my problems started when I decided to stop write code with loops and
selections...

Regards
Gunnar


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Please explain syntax needed

I just recorded this
Sub Macro6()
Macro recorded 6/3/2004 by Don Guillett
Selection.Copy
Range("A6,F6,G3,G6").Select
Range("G6").Activate
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=False
End Sub
so boiled down, it could be
Sub Macro6()
range("a1").Copy
Range("A6,F6,G3,G6").PasteSpecial Paste:=xlPasteAll
End Sub
--
Don Guillett
SalesAid Software

"Nobody" wrote in message
...
Hi,

Are there anybody out there to explain once and for all the syntax needed.

I
often get debugging error claiming "object is missing" or like now with

this
simplifyed code below: "Error 1004 Metod Range in object Worksheet

failed".

Sub on Sheet 104:

Private Sub Worksheet_Activate()
Sheet112.Range("N29").Copy
Sheet112.Range("C29:G48,C52:G71,C75:G94").PasteSpe cial (xlPasteAll)
End Sub

All my problems started when I decided to stop write code with loops and
selections...

Regards
Gunnar




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
VBA code to sum a row: syntax needed [email protected] Excel Discussion (Misc queries) 1 July 11th 05 06:41 PM
Multiple Condition syntax needed Jetheat Excel Programming 3 May 30th 04 11:18 PM
xlend syntax in VBA-guru help needed Stuart Farr[_5_] Excel Programming 3 May 3rd 04 03:47 PM
Syntax needed for With count Excel Programming 4 April 6th 04 02:33 PM
please explain Jim Madsen Excel Programming 2 December 24th 03 04:44 PM


All times are GMT +1. The time now is 03:59 PM.

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"