Jan 12 2020 09:42 AM
Hi
I have an excel (365) with code in VB.
After I run the module the "undo" stops working, when I remove the VB module the "undo" acts normaly.
What can I do to solve this?
Can the VB code cause this? (I can add it to here) the code copies the comments with the Vlookup function.
Thanks for your help
Sigal
Jan 13 2020 07:06 AM - edited Jan 13 2020 07:07 AM
Yes, many VBA commands clear the Undo stack in Excel (any VBA command that modifies something on your spreadsheet). There is nothing you can change about that, other than:
- Not using that VBA command
- Looking for an alternative method
- Use VBA to build our own undo
To be able to advise we need to see your code.
Jan 13 2020 12:24 PM
Hi
Thanks for your answer, If there is another way to do it i'll be happy to learn.
I need the function to do: when I use Vlookup I need to copy not only the value of the relevant cell but also the comment of that cell.
To do so I found a VBA code in the web that I use.
I will appreciate any workaround to fix it, the function runs only when called (not calculated all the time).
Following the code I use:
Thanks
Sigal
Jan 14 2020 01:46 AM