help with code in a mack

R

Richard

How would I run this code in a mack. The command button will not activate on
the sheet
 
N

Niek Otten

Hi Richard,

<this code>

what code?

<mack>

A Mac?


--
Kind regards,

Niek Otten
Microsoft MVP - Excel



| How would I run this code in a mack. The command button will not activate on
| the sheet
 
R

Richard

Private Sub CommandButton1_Click()

Worksheets("Sent to Assembly").Range("A3:B100,c3:c100").Copy
Worksheets("Parts Sent to Assembly").Range("a65000").End(xlUp).Offset(1,
0).PasteSpecial
Worksheets("Sent to Assembly").Range("a3:a100,b3:B100").ClearContents
Worksheets("Schedule").Range("d1,L1,a3:a100,b3:B100,d3:d100").ClearContents


End Sub
 
R

Richard

I don't know what you mean? Is it the same as in Windows? Thanks for your help


Private Sub CommandButton1_Click()

Worksheets("Sent to Assembly").Range("A3:B100,c3:c100").Copy
Worksheets("Parts Sent to Assembly").Range("a65000").End(xlUp).Offset(1,
0).PasteSpecial
Worksheets("Sent to Assembly").Range("a3:a100,b3:B100").ClearContents
Worksheets("Schedule").Range("d1,L1,a3:a100,b3:B100,d3:d100").ClearContents


End Sub
 
D

Dave Peterson

Mac's don't support the objects from the control toolbox toolbar. You'll have
to replace it with a button from the Forms toolbar.

Then move the code from the worksheet to a general module. Maybe modify the
code. And assign the macro to that button.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Mack and windows 5
PC and Mack 2
VBA Coding Help for Beginner 0
Criteria across multiple columns and rows 0
Mail Merge 3
Office Key Expired 1
Restrict Access or View 1
Reducing line spacing in subreport 4

Top