ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can't Find Project or Library (https://www.excelbanter.com/excel-programming/395868-cant-find-project-library.html)

Alectrical

Can't Find Project or Library
 
I have a line in a macro as follows:

Sheets("Chrono").[A1] = Format ((Timer() - Depart) / 3600 / 24, "hh:mm:ss")

When I try to run the macro I get the following error message:

Compile Error: Can't find project or library.

I have had this macro working on another computer, any ideas.

Thanks
Alec

Dave Peterson

Can't Find Project or Library
 
With that project active, click on Tools|References.

Look for a reference marked MISSING. You'll have to decide if you need to
replace it or just uncheck it.



Alectrical wrote:

I have a line in a macro as follows:

Sheets("Chrono").[A1] = Format ((Timer() - Depart) / 3600 / 24, "hh:mm:ss")

When I try to run the macro I get the following error message:

Compile Error: Can't find project or library.

I have had this macro working on another computer, any ideas.

Thanks
Alec


--

Dave Peterson

Alectrical

Can't Find Project or Library
 
Thanks Dave

That works great.

Best Regards
Alec

"Dave Peterson" wrote:

With that project active, click on Tools|References.

Look for a reference marked MISSING. You'll have to decide if you need to
replace it or just uncheck it.



Alectrical wrote:

I have a line in a macro as follows:

Sheets("Chrono").[A1] = Format ((Timer() - Depart) / 3600 / 24, "hh:mm:ss")

When I try to run the macro I get the following error message:

Compile Error: Can't find project or library.

I have had this macro working on another computer, any ideas.

Thanks
Alec


--

Dave Peterson



All times are GMT +1. The time now is 03:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com