Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY MySheet ( Help!!)
Message
From
08/11/2000 14:17:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/11/2000 13:51:54
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00439327
Message ID:
00439339
Views:
11
>I'm copying a "template" sheet within a workbook in order to make one sheet for each employee. I want to add a sheet called "Cindy" to the current workbook - either at the end (Sheets(Count)) or after some particular sheet.
>
>I have
lcSheetType = "Monthly"
>lcEmployee = "Cindy"
>oExcel.Sheets(lcSheetType).Copy()
which creates a new workbook and puts a sheet called "Montlhy" in it - but I want it to be in the current workbook! The docs say the syntax I need is
Worksheets("Sheet1").Copy after := Worksheets("Sheet3")
but I can't translate this into anything I can use.
>
>Help is appreciated!

=.Sheets(lcSheetType).Copy(,.ActiveSheet)
.ActiveSheet.Name = lcEmployee

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform