Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

Excel msg User-defined type not defined - but no VB code

I have an Excel spreadsheet with several tabs and vlookups.  It also, at one time, included a VBA macro which I used to populate columns on the spreadsheet.  The macro has been removed, and no macros remain.

However, whenever I change any cell on the spreadsheet, I get the "User-defined type not defined" error message, which is extremely annoying.

Why am I getting this error and how can I resolve it?\
0
SkyGuyDave
Asked:
SkyGuyDave
  • 2
1 Solution
 
Martin LissRetired ProgrammerCommented:
Can you upload the workbook?
0
 
Shanan212Commented:
Goto your VBA Editor by pressing ALT + F11
On your left, you will see your worksheets and modules (with macros if you have any left)
Right click on the problem worksheet and click 'View Code'
You should have code inside. If you do delete it. If you don't I highly suggest posting a sample workbook
0
 
SkyGuyDaveAuthor Commented:
Thanks for the comments, but I solved this issue.  There was no code.  I examined & verified every function (eg, =vlookup, =if) in the top row, and they were all ok.  Knowing they were good, i did a 'copy special' to refresh the entire column with the model function.  The problem vanished.  Apparently one of the cells in the underlying 51k rows was corrupted.  I've never encountered this situation before (hard to believe).  Excel certainly doesn't offer much help in isolating the error!
0
 
SkyGuyDaveAuthor Commented:
Further testing, as described above.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now