code error

have this

error in code to run

a1a2a1.PNG123456.xlsm
ADRIANA PACCOUNTING ASSISTANTAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
You can change ToColLetter (LastLetter) to be the letter of the column you are interested in.
Martin LissOlder than dirtCommented:
The ToColLetter function doesn't exist but you could add this to Module1.

Function ToColLetter(ByVal sColLetter As String) As Long
' Convert column letter to numeric
     ColLetterToNum = ActiveWorkbook.Worksheets(1).Columns(sColLetter).Column
End Function

Open in new window

Martin LissOlder than dirtCommented:
Try this.
29077203.xlsm
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
Martin i get this error
a1a1a1a1a1.PNG
Martin LissOlder than dirtCommented:
The ClearLineOut sub doesn't exist. Which sheet is the CLEAN DATA supposed to clean and what range should it delete.
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
123456789.PNG
Martin LissOlder than dirtCommented:
The picture you posted refers to an N_SPACES sheet and there is no N_SPACES sheet in the workbook you attached.
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
kukukukuku.PNG
Martin LissOlder than dirtCommented:
Updated.
29077203a.xlsm

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
Martin GREAT JOB !!
Best Expert !!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.