Hello everybody,
I'm having trouble changing my Macro's colors when it automatically selects fields.
Does anyone have any idea how I can solve this problem?
Thanks for listening.
This code VBA i'm use:
I'm having trouble changing my Macro's colors when it automatically selects fields.
Does anyone have any idea how I can solve this problem?
Thanks for listening.
This code VBA i'm use:
VBA Code:
Sub RemoveLeadingSpace()
Dim Rng, WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
Rng.Value = VBA.LTrim(Rng.Value)
Next
For Each Rng In WorkRng
Rng.Value = VBA.RTrim(Rng.Value)
Next
MsgBox ("Formula was used in this Guide")
End Sub