Refactoring/Debugging code

CMIIandExcel

Board Regular
Joined
Sep 4, 2009
Messages
190
Hi all

I have built up a bundle of code which i am trying to refactor and tidy up a bit.

In the editor is there a way to see where a procedure is called by looking at the procedure, other than setting breakpoints and running all the main procedures.

Any other tips or points to good articals on using the editor would be welcome.

Thanks in advance

Mike
 

Some videos you may like

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Ahh - that's useful to me as I have an Access db of Functions where I need to understand how they are used. Presumably I can modify to work in Access (shouldn't be difficult as only the one db).

Unfortunately, Access lets UDFs be used in SQL statements, so I assume I will have to trawl thru the query defs manually?

Thanks Zack!!!
 

CMIIandExcel

Board Regular
Joined
Sep 4, 2009
Messages
190
Zack

Thanks for the link, it would be just what i need but it doesnt seem to work on my excel:(

I get the Added option in my menus, when I click on it it displays the pick a workbook dialog but the are no workbooks listed to pick from.

I am running Excel 2003, any ideas why its failing ?

Regards

Mike
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
@Mike: Are all of the workbooks saved?

@Richard: I'm not that good with Access to know. I would think, off the top of my head, you could put the SQL statements into textual format and do a search on it, maybe using a text file and EOF-type iteration? Or even solely via VBA w/ InStr()? Dunno! :(
 

Watch MrExcel Video

Forum statistics

Threads
1,109,451
Messages
5,528,836
Members
409,839
Latest member
akashsadhu
Top