Code will only run when visual basic editor is open

Liz_I3

Well-known Member
Joined
Dec 30, 2002
Messages
647
Office Version
  1. 2016
Platform
  1. Windows
I did get my code tocrun with a workabout but would like to know why code would run wit vbe open but not when closed from a macro button or from view macro run .
Has anyone had this issue? What was the cause?

Thanks
L
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Most of the time when I see something similar happen it is because the ranges in the code haven't been qualified with relevant worksheet so it is applying to the wrong worksheet but it is not possible to tell if that is the issue without seeing the code.
 
Upvote 0
Thanks I posted the code earlier under title Application defined or object defined error help. Did not want to duplicate. Just very curious has to what would cause this.
 
Upvote 0
The other thread is here
and it looks like you solved it ??
 
Upvote 0
I did so the the code would run but just a work around never solved the true reason it happened

Thanks
 
Upvote 0
Ahh, so true....but sometimes we never actually find out....Remember, it is Microsoft !!
It might also pay to update your profile details so we know what version / platform, etc you are using... :cool: (y)
 
Upvote 0
OK....and Windows or Mac ??
Once it's in the profile, users can provide answers accordingly
 
Upvote 0
You need to put this info in your profile....at the top of the page on the RH side you will see your login name. Click on it and then select "Account Details"
Scroll down the page and you can check all that applies to you.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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