Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
can someone help me on this one .. i cant figured it why i get error
424 Set sem__ = Sheets("template").Copy(befo=Sheets(1)) ty |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This works...
Dim sem__ As Excel.Worksheet Sheets("template").Copy befo=Sheets(1) Set sem__ = ActiveSheet Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware wrote in message can someone help me on this one .. i cant figured it why i get error 424 Set sem__ = Sheets("template").Copy(befo=Sheets(1)) ty |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you look at the Copy method of the Sheets collection in the Object
browser, you'll see that it is defined as "Sub Copy([Before], [After])". As a Sub it has no return value and consequently you have nothing to Set "sem__" equal to. If it was a function (e.g. WorkSheets.Add; "Function Add([Before], [After], [Count], [Type]) As Object") then you could as it return a value, an Object in this case. NickHK wrote in message oups.com... can someone help me on this one .. i cant figured it why i get error 424 Set sem__ = Sheets("template").Copy(befo=Sheets(1)) ty |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sheets("Rpt").Copy different results from running in macro than off excel menu?? | Excel Discussion (Misc queries) | |||
Auto "copy and paste" individual cells from various sheets into one sheet ?? | Excel Discussion (Misc queries) | |||
"With Sheets" Issue - macro on one sheet to affect hidden rows on other sheets | Excel Programming | |||
Sheets.Add using other worksheet as "template" | Excel Programming | |||
"Path/File Access Error" on Sheets.Copy | Excel Programming |