Avatar of Frank .S
Frank .S
Flag for Australia asked on

vba error_row & col hilite

hi experts the following code is giving me error when i have copied it from another wksht where it works perfectly to a new wksht then does not work & shows errors, see below.
.
vba code compile error_06.1.PNG
VBA

Avatar of undefined
Last Comment
Martin Liss

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Martin Liss

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Bembi

Or in other words,
The code relies on a sub / function which also resides in a module in the same workbook.
To make it work, copy both to the new workbook. 
Frank .S

ASKER
thankyou bembi
Frank .S

ASKER
ive noticed now that i have copied the code into the module & then the other code also to hilite the row & columns, i have copied the code into another wksht in the same wkbk but it does not hilite the entire column only above the active cell, why is that? see attached screenshot.
vba-code-hilite-rows---columns_1.PNG
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Martin Liss

Please attach the problem workbook.
Frank .S

ASKER
seems to be working now for some reason, thanks anyway martin
Martin Liss

That's good.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.