Jump to content

Recommended Posts

Posted

I have looked under help and couldnt find the answer I was looking for. I know this is probably a really easy answer but I was needing to know how to select a worksheet in Excel if you have multiple worksheets. Thanks a lot

Posted

Help file quote:

  Quote

_ExcelSheetActivate

--------------------------------------------------------------------------------

Activate the specified sheet by string name or by number.

#Include <Excel.au3>

_ExcelSheetActivate($oExcel, $vSheet)

Parameters

$oExcel An Excel object opened by a preceding call to _ExcelBookOpen() or _ExcelBookNew()

$vSheet The sheet to activate, either by string name or by number

Return Value

Success: Returns 1

Failure: Returns 0 and sets @error on errors:

@error=1: Specified object does not exist

@error=2: Specified sheet number does not exist

@error=3: Specified sheet name does not exist

Read the help file - there is plenty about working with Excel workbooks.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

  • 7 years later...
Posted

You can find the difference between the "old" and "new/current" version of the Excel UDF in th help file.

Function _ExcelSheetActivate has been removed. You specify the sheet you want to process as parameter when calling a function.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

You can still select the sheet "by hand". 

$oWorkbook.Sheets(<number or name>).Activate

I will check your other thread as soon as I return from my business trip. 

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

:) 

My UDFs and Tutorials:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...