Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Running Win Macros on Mac

I'm trying to run macros that I did in Win Excel on the Mac, but fo
some reason I am getting errors. I am getting run-time errors o
simple things such as:

Private Sub CommandButton24_Click()

Sheets("Sheet 2").Select

End Sub


All of my command buttons have also become unclickable on the Mac. An
idea on how to solve this.

Thanks

Ca

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Running Win Macros on Mac

Active X is a Windows-only technology, so Control Toolbox controls won't
work in MacXL.

Use controls from the Forms toolbar instead.

In article ,
wammer wrote:

I'm trying to run macros that I did in Win Excel on the Mac, but for
some reason I am getting errors. I am getting run-time errors on
simple things such as:

Private Sub CommandButton24_Click()

Sheets("Sheet 2").Select

End Sub


All of my command buttons have also become unclickable on the Mac. Any
idea on how to solve this.

Thanks

Cam

\
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Running Win Macros on Mac

Thanks for the reply. I am now using forms and the buttons ar
definitely still clickable. I still, however get errors on the macro
themselves. I got a "Run-time Error 9: Subscript out of range on th
macro I was trying to run:

Sheets(Array("Sheet 1", "Sheet 2", "Sheet 3", "Sheet 4", "Shee
5")).Select

Any idea why this might be?

Thanks again
Cam



JE McGimpsey wrote:
*Active X is a Windows-only technology, so Control Toolbox control
won't
work in MacXL.

Use controls from the Forms toolbar instead.

In article ,
wammer wrote:

I'm trying to run macros that I did in Win Excel on the Mac, bu

for
some reason I am getting errors. I am getting run-time errors on
simple things such as:

Private Sub CommandButton24_Click()

Sheets("Sheet 2").Select

End Sub


All of my command buttons have also become unclickable on the Mac.

Any
idea on how to solve this.

Thanks

Cam

\


--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 301
Default Running Win Macros on Mac

One guess is that there's no space in the real sheet names??
Bob Umlas
Excel MVP

"wammer " wrote in message
...
Thanks for the reply. I am now using forms and the buttons are
definitely still clickable. I still, however get errors on the macros
themselves. I got a "Run-time Error 9: Subscript out of range on the
macro I was trying to run:

Sheets(Array("Sheet 1", "Sheet 2", "Sheet 3", "Sheet 4", "Sheet
5")).Select

Any idea why this might be?

Thanks again
Cam



JE McGimpsey wrote:
*Active X is a Windows-only technology, so Control Toolbox controls
won't
work in MacXL.

Use controls from the Forms toolbar instead.

In article ,
wammer wrote:

I'm trying to run macros that I did in Win Excel on the Mac, but

for
some reason I am getting errors. I am getting run-time errors on
simple things such as:

Private Sub CommandButton24_Click()

Sheets("Sheet 2").Select

End Sub


All of my command buttons have also become unclickable on the Mac.

Any
idea on how to solve this.

Thanks

Cam

\ *



---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Running Win Macros on Mac

Works fine for me in MacXL, if my sheet names have a space between
"Sheet" and the number.

In article ,
wammer wrote:

I got a "Run-time Error 9: Subscript out of range on the
macro I was trying to run:

Sheets(Array("Sheet 1", "Sheet 2", "Sheet 3", "Sheet 4", "Sheet
5")).Select

Any idea why this might be?

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
Running Macros Links and Linking in Excel 3 July 13th 06 11:30 PM
running macros from IF CJ Excel Worksheet Functions 2 April 30th 06 05:03 PM
HELP - Running Macros in VBA Louise New Users to Excel 7 April 6th 05 03:21 PM
HELP: Running two Macros, one before the other Bobbak Excel Programming 4 December 9th 03 01:27 PM
HELP: Running two Macros, one before the other Bobbak Excel Programming 3 December 8th 03 02:08 PM


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