Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Calling macros width arguments in winxp

Dear All,

I need your help.

What I have is a woorbook wih a lot o sheets and in the first sheet I
put a button for each sheet associated with a macro and a argument
('gotows "sheet1"'), wich is the name of worksheet that I want to
jump.
This is the code:

Public Sub gotows(m As String)
ActiveWorkbook.Worksheets(m).Activate
End Sub

And it work fine in my win2k pro with excel 2002.

But when I try to run it on a winxp, also with excel 2002, the actions
associated with buttons 'gotows "sheet1"' do nothing. But if I call a
macro without any arguments it work fine. The problems is just the
macros with args.

Can you help me please,

Isidro
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Calling macros width arguments in winxp

Using arguments in Onaction macros is not a documented capability. There
have been reports that it isn't supported in xl2002 or event back to xl2000
with SP3 (as I recall). Yours is the first I have seen that said it was
supported in xl2002 and the difference is in the operating system version.

Anyway, If it doesn't work, I don't think there is a way to make it work.
Just to let you know that there is such a problem.

--
Regards,
Tom Ogilvy

"Isidro Vila Verde" wrote in message
om...
Dear All,

I need your help.

What I have is a woorbook wih a lot o sheets and in the first sheet I
put a button for each sheet associated with a macro and a argument
('gotows "sheet1"'), wich is the name of worksheet that I want to
jump.
This is the code:

Public Sub gotows(m As String)
ActiveWorkbook.Worksheets(m).Activate
End Sub

And it work fine in my win2k pro with excel 2002.

But when I try to run it on a winxp, also with excel 2002, the actions
associated with buttons 'gotows "sheet1"' do nothing. But if I call a
macro without any arguments it work fine. The problems is just the
macros with args.

Can you help me please,

Isidro



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Calling macros width arguments in winxp

So I need to change my strategie...

Thank you very much, Tom, for your info.

Regards

Isidro
PS: in xl2002 + win2k it work fine in several computers that I try.


"Tom Ogilvy" wrote in message ...
Using arguments in Onaction macros is not a documented capability. There
have been reports that it isn't supported in xl2002 or event back to xl2000
with SP3 (as I recall). Yours is the first I have seen that said it was
supported in xl2002 and the difference is in the operating system version.

Anyway, If it doesn't work, I don't think there is a way to make it work.
Just to let you know that there is such a problem.

--
Regards,
Tom Ogilvy

"Isidro Vila Verde" wrote in message
om...
Dear All,

I need your help.

What I have is a woorbook wih a lot o sheets and in the first sheet I
put a button for each sheet associated with a macro and a argument
('gotows "sheet1"'), wich is the name of worksheet that I want to
jump.
This is the code:

Public Sub gotows(m As String)
ActiveWorkbook.Worksheets(m).Activate
End Sub

And it work fine in my win2k pro with excel 2002.

But when I try to run it on a winxp, also with excel 2002, the actions
associated with buttons 'gotows "sheet1"' do nothing. But if I call a
macro without any arguments it work fine. The problems is just the
macros with args.

Can you help me please,

Isidro

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
CALLING MACROS FROM A NEW WORKSHEET NSNR Excel Discussion (Misc queries) 4 February 1st 08 07:10 AM
calling macros from worksheet to another NSNR Excel Discussion (Misc queries) 3 October 27th 07 01:49 PM
Calling macros in another workbook Nick Wright Excel Worksheet Functions 1 January 12th 06 04:03 PM
xyScatterChart macro works on WinXP Pro & not on WinXP Home? [email protected] Excel Discussion (Misc queries) 0 July 18th 05 12:30 AM
Calling macros from another XL Workbook jamesa Excel Programming 1 October 2nd 03 03:06 PM


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