Link to home
Start Free TrialLog in
Avatar of Frank .S
Frank .SFlag 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
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
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
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. 
Avatar of Frank .S

ASKER

thankyou bembi
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
Please attach the problem workbook.
seems to be working now for some reason, thanks anyway martin
That's good.