Excel VBA - code works with Microsoft but not Apple - Help Required

Joined
Sep 6, 2012
Messages
2
Reaction score
0
Points
1
Hi, I have set up a tool in Excel that has worked for months in Microsoft Windows.

The piece of VBA code when run on Apple fails at the following line of code

Columns("U:U").Select
Selection.Find(What:="1", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate

Does anyone know why this would be and what the alternative code would be that would work for Apple?

Or is it a settings issue?

Thanks in advance
Jeff
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Perhaps someone who knows VBA better than I can chime in here.... but, VBA code from Windows needs to be recompiled in order to work in the Mac version of Office. That goes for VBA code used in Excel, Word, or PP.
 
OP
J
Joined
Sep 6, 2012
Messages
2
Reaction score
0
Points
1
Thank you chscag. Appreciate the response

I found out later on that it worked for someone with Apple Mac who had the most recent version of Excel installed. We're going down that route

Cheers
Jeff
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top