Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to choose a sheet in a workbook with the old Excel XLM ?


Hi,

I have an old XLM macro which runs just fine for my needs. The onl
thing I have not managed to do is to be able to select not just a
excel workbook but a given sheet of that workbook. Is there an
command or way of making it choose the proper sheet of the workboo
before executing itself ?

Any suggestion is welcome !

Cheers
Nade

--
erfan
-----------------------------------------------------------------------
erfani's Profile: http://www.excelforum.com/member.php...fo&userid=1591
View this thread: http://www.excelforum.com/showthread.php?threadid=27395

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How to choose a sheet in a workbook with the old Excel XLM ?

I don't know that much about XLM, but this might be the method you're
looking for:

WORKBOOK.SELECT
Macro Sheets Only

Equivalent to selecting a sheet or group of sheets in the active workbook.
If you select a group of sheets, subsequent commands effect all the sheets
in the group.

Syntax

WORKBOOK.SELECT(name_array, active_name, replace)

Name_array is a horizontal array of text names of sheets you want to
select. If name_array is omitted, no sheets are selected.

Active_name is the name of a single sheet in the workbook that you want
to be the active sheet. If active_name is omitted, the first sheet in
name_array is made the active sheet.

Replace specifies whether the currently selected sheets or macro sheets
are to be replaced by name_array. If TRUE or omitted, then the current sheet
selection is replaced by name_array. If FALSE, then name_array will be
appended to the current sheet.

-Erik


"erfani" wrote in message
...

Hi,

I have an old XLM macro which runs just fine for my needs. The only
thing I have not managed to do is to be able to select not just an
excel workbook but a given sheet of that workbook. Is there any
command or way of making it choose the proper sheet of the workbook
before executing itself ?

Any suggestion is welcome !

Cheers
Nader


--
erfani
------------------------------------------------------------------------
erfani's Profile:
http://www.excelforum.com/member.php...o&userid=15918
View this thread: http://www.excelforum.com/showthread...hreadid=273953



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
Getting a Sheet to Choose to Display Other Sheets Kyle P.[_2_] Excel Discussion (Misc queries) 0 May 27th 10 10:57 PM
Switching between sheets in same workbook (Like Alt + Tab & Choose nils Excel Discussion (Misc queries) 4 April 17th 10 12:12 AM
When I open a workbook, how can I choose which worksheet opens? josephdmcc Excel Worksheet Functions 1 April 12th 06 04:59 PM
Can I alphabetize by sheet name in an excel workbook? sunrosemom Excel Discussion (Misc queries) 1 February 21st 05 08:15 PM
Need listbox to choose sheet to duplicate [email protected] Excel Programming 0 September 25th 03 03:38 AM


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