Forum Discussion
LauraDaisy
Mar 11, 2020Copper Contributor
VBA code fail Auto highlight
I entered code for auto fill which worked (copied and pasted from google) I saved and closed but when I went to open it stopped working. I now can’t apply the code to any spreadsheet. How can...
Subodh_Tiwari_sktneer
Mar 11, 2020Silver Contributor
Did you save the file as Macro-Enabled Workbook?
Point to remember is, only .xls or .xlsb or .xlsm file can hold the macro in it.
- LauraDaisyMar 11, 2020Copper ContributorHi
Yeah, even when I apply to a new file or save and open as xsl etc it still doesn’t apply. Saves the code fine but doesn’t make a difference.- Subodh_Tiwari_sktneerMar 12, 2020Silver Contributor
Check the attached in which I have placed the code on Sheet1 Module, let me know if that works for you.
Make sure to enable the macros in the file when prompted. If macros are disabled, they won't work.
- LauraDaisyMar 13, 2020Copper ContributorHi
The code worked fine when I used your spreadsheet, but when I opened a new excel file and added the module it didn’t work.
How do I make it active in the spreadsheet? It’s Saved as macro-enabled before I added the code but it’s not highlighting the rows.
Thanks