Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Generic Workbook Select

Hi! This is a really easy one, but I can't seem to find
the answer. I was wondering what the code is to
generically activate the other open workbook in Excel
without naming it proper. Something like this (but not
this obviously):

Workbooks.Next.Select

Thanks!

Sincerely,

Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Generic Workbook Select

Hi Michael,

Here is one way

Dim wb
For Each wb In Workbooks
If wb.Name < ActiveWorkbook.Name Then
wb.Activate
End If
Next wb

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Michael" wrote in message
...
Hi! This is a really easy one, but I can't seem to find
the answer. I was wondering what the code is to
generically activate the other open workbook in Excel
without naming it proper. Something like this (but not
this obviously):

Workbooks.Next.Select

Thanks!

Sincerely,

Michael



  #3   Report Post  
Posted to microsoft.public.excel.programming
DM DM is offline
external usenet poster
 
Posts: 3
Default Generic Workbook Select

Activewindow.Activatenext

DR. M


-----Original Message-----
Hi! This is a really easy one, but I can't seem to find
the answer. I was wondering what the code is to
generically activate the other open workbook in Excel
without naming it proper. Something like this (but not
this obviously):

Workbooks.Next.Select

Thanks!

Sincerely,

Michael
.

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
How to select all worksheets in a workbook Faith Excel Discussion (Misc queries) 8 October 20th 08 09:12 PM
Select sheet tabs in workbook & save to separate workbook files stratocaster Excel Worksheet Functions 2 March 1st 06 03:35 PM
workbook select Nigel Excel Discussion (Misc queries) 3 May 17th 05 08:45 PM
select workbook macro Nigel Excel Discussion (Misc queries) 3 May 16th 05 01:45 PM
Select other workbook to select data in a macro. T Tromp Excel Programming 2 September 19th 03 01:43 PM


All times are GMT +1. The time now is 08:11 AM.

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"