Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can someone explain to me? Pls?


My platform is Windows XP and is using excel 97 macros. My supervisor i
using Windows 98 and is also using excel 97 macros. The strangest thin
is that she can open the excel file(.xls) using .activate while I hav
to use the workbooks.open to open an existing excel file(.xls). O
maybe I have missed out something in the midst can someone fill me i
this one and point me to some links about the difference of usin
macros in Windows XP and Windows 98????? Cause I already have problem
popping up ever since I have switched to windows XP platform. :(

In case anyone wants to know what I mean, here is the code:

windows("files.xls").activate = for Windows 98, Pentimum II

Workbooks.Open filename:="D:\files.xls" = for Windows XP, Pentimum

--
stevetan201
-----------------------------------------------------------------------
stevetan2010's Profile: http://www.excelforum.com/member.php...fo&userid=1624
View this thread: http://www.excelforum.com/showthread.php?threadid=27895

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Can someone explain to me? Pls?

Hi
normally there's no difference in the use of these wo Operating systems
together with Excel macros. I would guess for her the file is already opened

"stevetan2010" wrote:


My platform is Windows XP and is using excel 97 macros. My supervisor is
using Windows 98 and is also using excel 97 macros. The strangest thing
is that she can open the excel file(.xls) using .activate while I have
to use the workbooks.open to open an existing excel file(.xls). Ok
maybe I have missed out something in the midst can someone fill me in
this one and point me to some links about the difference of using
macros in Windows XP and Windows 98????? Cause I already have problems
popping up ever since I have switched to windows XP platform. :(

In case anyone wants to know what I mean, here is the code:

windows("files.xls").activate = for Windows 98, Pentimum II

Workbooks.Open filename:="D:\files.xls" = for Windows XP, Pentimum 4


--
stevetan2010
------------------------------------------------------------------------
stevetan2010's Profile: http://www.excelforum.com/member.php...o&userid=16240
View this thread: http://www.excelforum.com/showthread...hreadid=278958


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Can someone explain to me? Pls?

Depending on your Windows Explorer "Hide extensions for known file types"
setting, Excel will have a different window title.
When ticked, window title will be "Book1"
When unticked, window title will be "Book1.xls"

From Windows Explorer, Tools | Options | View

Try something like: Workbooks("Book1.xls").Activate


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"stevetan2010" wrote in message
...

My platform is Windows XP and is using excel 97 macros. My supervisor is
using Windows 98 and is also using excel 97 macros. The strangest thing
is that she can open the excel file(.xls) using .activate while I have
to use the workbooks.open to open an existing excel file(.xls). Ok
maybe I have missed out something in the midst can someone fill me in
this one and point me to some links about the difference of using
macros in Windows XP and Windows 98????? Cause I already have problems
popping up ever since I have switched to windows XP platform. :(

In case anyone wants to know what I mean, here is the code:

windows("files.xls").activate = for Windows 98, Pentimum II

Workbooks.Open filename:="D:\files.xls" = for Windows XP, Pentimum 4


--
stevetan2010
------------------------------------------------------------------------
stevetan2010's Profile:
http://www.excelforum.com/member.php...o&userid=16240
View this thread: http://www.excelforum.com/showthread...hreadid=278958



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 212
Default Can someone explain to me? Pls?

Hi,
windows("files.xls").activate = for Windows 98, Pentimum II

You have not specified the path where file is located. Still it opens the
workbook?
I don't think so. For Windows().Activate the file must be already open.
Otherwise
you will get error, 'Subscript out of range.'


Workbooks.Open filename:="D:\files.xls" = for Windows XP, Pentimum 4

This makes senses.

Sharad


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
Not sure how to explain.... Tricia LeAnn[_2_] Excel Discussion (Misc queries) 12 January 18th 08 07:14 PM
Explain THIS ... Ray Excel Discussion (Misc queries) 9 July 31st 07 08:06 PM
explain this one to me.... Dave F Excel Discussion (Misc queries) 10 November 16th 06 11:05 PM
Please explain Maxwell Excel Worksheet Functions 1 March 31st 06 01:12 PM
How to explain??... tagr Excel Discussion (Misc queries) 2 March 18th 06 03:34 AM


All times are GMT +1. The time now is 06:50 PM.

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"