Universal VBA code

omriar

New Member
Joined
May 22, 2018
Messages
5
Hi, I'm working on a project, in it I made a workbook with codes in sheets, modules and I made userforms.

The code is supposed to process data from an analytic instrument that gives me everytime a different excel file, therefore every time I need to use this code on a different excel workbooks.

I tried to use the code while the workbook that I wrote it on is opened and everything works fine. The problem is I want the code to be available without opening that original workbook.

I would be very happy if someone will help me to solve this problem.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I may be out of my depth on this, but prepared to give it a shot!!!

Try putting it in "Personal xlsb"

My understanding is;
If ALL Workbooks you open could use it and the "Source Book" is closed, then try putting it in "Personal xlsb"

If it’s only for the the ONE Workbook, and its open then put it IN a “Module” within that Workbook.

If it’s only wanted on that particular Sheet put the code on the “Sheet”
 
Upvote 0
Solution
I may be out of my depth on this, but prepared to give it a shot!!!

Try putting it in "Personal xlsb"

My understanding is;
If ALL Workbooks you open could use it and the "Source Book" is closed, then try putting it in "Personal xlsb"

If it’s only for the the ONE Workbook, and its open then put it IN a “Module” within that Workbook.

If it’s only wanted on that particular Sheet put the code on the “Sheet”
Out of your depth? I never got an answer so quick that actually worked in less than 10 minutes to implement!
Thank you, I thought it's gonna be a nightmare!
 
Upvote 0

Forum statistics

Threads
1,215,593
Messages
6,125,716
Members
449,254
Latest member
Eva146

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