Not running as hoped

8700Rakf

New Member
Joined
May 15, 2019
Messages
32
Hello

I have some code that is on paper( I think ), should run fine. When i use debug, I can see that all is going well and as expected.

But when i do it outside the debugger, and on my sheet, it doesnt run as expected.


I have quiet a large code snap, and would rather attach the excel file, but i cant see a way to do it here?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
So what is it not doing, or doing incorrectly ??
Are you checking the code line by line using F8.....and looking at the results as you go ?
 
Last edited:
Upvote 0
Yes I am using the Debugger. So when I am running it without it, the area which is supposed to change, just keeps showing 0.
When using debugger, inside the code, it does what it is supposed to do.
 
Upvote 0
I've tried changing a couple of the dropdowns....but it always returns 0.....even if I run it manually ??
Might have to get another poster to take a look....it's a bit hard to follow !
 
Upvote 0
you sure it returns 0?

I see, sorry for the trouble, but thanks for having a look at it though! And yeah there is quiet a lot to look at, so it a bit complicated.
 
Upvote 0
I put a breakpoint in the version dropdown code
Code:
Private Sub VersionBox_Change()

Call SelectionClass
Call SelectionScale

Call LoadValues_OLD_EU
Call LoadValues_NEW_EU_Multi
Call LoadValues_NEW_EU
Call LoadValues_NMIA
Call LoadValues_NIST

End Sub
Then made a couple of version choices....that then allowed me to step through the code....and every time it came back with....0 > m > 0 on A14 to A16.
I wondered though if it has something to do with your using merged cells...which can be a nightmare for VBA ??
 
Upvote 0
Maybe, I am not sure. What kind of problems does merge cells cause?

Actually, everything was running smootly until I added the LoadValues_NIST sub, after that thing didnt work out, correctly. So I thought, that I had added too much, for excel to function correctly.
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top