Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Formula evaluation in excel prgram created with VB

Dear Experts,

Normally, I use the evaluate formula to see how the calcs are performed.
However, there is a program that was created using Visual Basic. I am not
able to see the calculations behind it. How do I access this?

I have the password to get into this program via Visual basic editor but I
all I see is VB language etc.

Is there a way I can see the figures being calculated?
Kind Regards

Ed

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Formula evaluation in excel prgram created with VB

You nee to add a break point in the VBA code and the debug the code in VBA.
OPen the workbook with the macro. the click on the first line of the
Function (or Sub) and Press F9. Here are some simple debug techniques

1) Use F8 to step through code
2) Use F9 to add more break points
3) Use F5 to run until a break point is reached
4) Hover mouse over variables to see the values of intermediate variables
5) At WATCH items to the debug envirnoment. Highlight variable with mouse
and then right click mouse. Select ADD Watch
6) Add debug stements into the code

debug.print myvariable where myvariable is any items in the code you want to
monitor any changes.

"Eddie Morris" wrote:

Dear Experts,

Normally, I use the evaluate formula to see how the calcs are performed.
However, there is a program that was created using Visual Basic. I am not
able to see the calculations behind it. How do I access this?

I have the password to get into this program via Visual basic editor but I
all I see is VB language etc.

Is there a way I can see the figures being calculated?
Kind Regards

Ed

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Formula evaluation in excel prgram created with VB

Joel,

Thanks for your tip. Much appreciated.

Regards
Ed

"Joel" wrote:

You nee to add a break point in the VBA code and the debug the code in VBA.
OPen the workbook with the macro. the click on the first line of the
Function (or Sub) and Press F9. Here are some simple debug techniques

1) Use F8 to step through code
2) Use F9 to add more break points
3) Use F5 to run until a break point is reached
4) Hover mouse over variables to see the values of intermediate variables
5) At WATCH items to the debug envirnoment. Highlight variable with mouse
and then right click mouse. Select ADD Watch
6) Add debug stements into the code

debug.print myvariable where myvariable is any items in the code you want to
monitor any changes.

"Eddie Morris" wrote:

Dear Experts,

Normally, I use the evaluate formula to see how the calcs are performed.
However, there is a program that was created using Visual Basic. I am not
able to see the calculations behind it. How do I access this?

I have the password to get into this program via Visual basic editor but I
all I see is VB language etc.

Is there a way I can see the figures being calculated?
Kind Regards

Ed

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show formulas and evaluaion with excel prgram created with VB Eddie Morris Excel Discussion (Misc queries) 1 October 30th 08 01:55 AM
Excel Function - Date evaluation bigbird98 Excel Worksheet Functions 2 July 23rd 08 08:27 PM
VLOOKUP FORMULA EVALUATION NEEDED SSJ New Users to Excel 3 March 29th 08 04:15 PM
How do I used a big formula I created in Excel? tdjones Excel Worksheet Functions 2 June 22nd 06 07:45 PM
IF formula - evaluation shows it should work but... Juliet Excel Worksheet Functions 6 January 17th 06 10:39 PM


All times are GMT +1. The time now is 01:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"