Works on Windows not on my Mac

Joined
Sep 20, 2012
Messages
6
Reaction score
0
Points
1
Can someone help me get this to work on a Mac?
Sub LastBorderedRowNumber()

Dim LastCellWithBorder As Long
Const ColumnLetter As String = "A"
Application.FindFormat.Clear
Application.FindFormat.Borders(xlEdgeBottom).LineStyle = xlSolid
LastCellWithBorder = Columns("A").Find("*", SearchDirection:=xlPrevious, SearchFormat:=True).Row
Application.FindFormat.Clear

' Let just see what we calculated
MsgBox "Last bordered cell in Column " & ColumnLetter & " is on Row " & LastCellWithBorder
End Sub
 
Joined
Apr 26, 2008
Messages
2,963
Reaction score
120
Points
63
Location
Belgium
Your Mac's Specs
iPad Pro 12.9 latest iOS
This is not related to any OS in particular.
The correct functioning of this routine depends on the application you are running it in ( Visual Basic, Excel macro, ..... )

What application are you developing/testing this in ?

Cheers ... McBie
 
OP
A
Joined
Sep 20, 2012
Messages
6
Reaction score
0
Points
1
Sorry , new at this. This was for an Excel for Mac macro. Have since found that the application.find function has been eliminated in Excel for Mac. No one knows why. I will do a for loop instead. Thank you for your response.
 

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