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: 8
Default Help with .Add specification

Hi group,

I'm using PHP5 to program Excel vie COM interface and have run into a snag
( for me anyway ). I am trying to use the .Add method on a Worksheet and
can't figure out the following:

From microsoft: (optional are 'Before, After, Count, Type)
ActiveWorkbook.Sheets.Add Befo=Worksheets(Worksheets.Count)


turns into PHP:
$this-excel-Worksheets-Add()

except I don't know how to specify 'Before, After, Count, Type' as options.?
It will accept one 'sheet obj' as an argument such as:

$this-excel-Worksheets-Add($this-excel-Worksheets(2))
but how do I specify if it's 'Before' or 'After' as well as 'Count' and
'Type'?

This doesn't work for me: (pseudo VB style)
$this-excel-Worksheets-Add(Befo=??, After:=??, Count:=??,
Type:=xlWorksheet)

Can anyone point me in the right direction?

Thanks,
Norman



--
Avatar hosting at www.easyavatar.com


 
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
IF formula for a number range specification Quimera New Users to Excel 1 August 15th 09 12:15 AM
HELP!I need a specification template purchasing Interior Design it designer Excel Worksheet Functions 1 July 6th 05 04:47 PM
vlookup file specification h2olawrence Excel Worksheet Functions 3 May 8th 05 05:39 PM
Summing all rows with certain specification martin Excel Worksheet Functions 2 January 7th 05 01:43 PM
excel file format specification Mariusz Popiołek Excel Programming 3 January 3rd 04 06:54 PM


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