code error

have this

error in code to run

a1a2a1.PNG123456.xlsm
ADRIANA PACCOUNTING ASSISTANTAsked:
Who is Participating?
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.
0
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

1
Martin LissOlder than dirtCommented:
Try this.
29077203.xlsm
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
Martin i get this error
a1a1a1a1a1.PNG
0
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.
0
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
123456789.PNG
0
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.
0
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
kukukukuku.PNG
0
Martin LissOlder than dirtCommented:
Updated.
29077203a.xlsm
1

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 !!
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.