Link to home
Start Free TrialLog in
Avatar of LUIS FREUND
LUIS FREUND

asked on

VBA Trim to a specific Sheet name

I have this VBA that works great but I want to add a specific sheet name to it.  The sheet name is MAIN_PN.  What would the code be with sheet MAIN_PN added to it?

Sub Trim()
Dim c As Range
For Each c In Range("A1:A8225")
   c = Application.Trim(c)
Next
 
End Sub
ASKER CERTIFIED SOLUTION
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LUIS FREUND
LUIS FREUND

ASKER

Awesome!  Thank you very much!
Glad to help :)