Running Code with F5 vs F8

AlanAnderson

Board Regular
Joined
Jun 7, 2010
Messages
134
Hi,

I have really strange situation. When I run the identical code (far too much to post) using F5 it falls over (one of my variables not being set by if loop).
When I run code using F8 so I can step through it, the code runs correctly from start to finish and finds that variable.

Does this make sense to anyone? Are there any differences between F5 and F8?

Regards,

Alan
 
Hi Guys,
The re-typing using the variables suggested by Norie has worked - Thank you so much to all of you for your help.
Must say I'm still baffled by fact that error did not show up using F8.

Thanks again everyone, this Forum is an absolute GodSend to newbies like me.

Thanks,

Alan
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Alan

I'm pretty sure it's nothing to do with F8 vs F5, it could just be something simple like a coincendence.

eg when you tried F8 the right worksheet was active, but for whatever reason when yout tried with F5 it wasn't.

In fact that might have happened if you'd run one before the other either way round because the code is selecting sheets.

Anyway, it's working.:)
 
Upvote 0
Norie, Think you are spot on. The one big difference between f5 & F8 is that whilst running with F8 I kept on selecting the QuoteFileSheet so that I could see what was happening.
I feel so STUPID!!!!!!!

Thanks a million, btw where is Yaren?

Regards,

alan
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,741
Members
452,940
Latest member
rootytrip

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