Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default References to Other Workbooks Don't Stick

Excel 2007 on Vista: When I add a reference (Visual Basic; Tools/References)
to a workbook with VBA code, the macros become available and executable.
When I try to exit from this workbook with the just-added reference, it
tells me the workbook has been modified and prompts me to save it. But when
I open it back up, the reference is gone. The same process worked fine on
my old system with Excel 2000.

What am I doing wrong?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default References to Other Workbooks Don't Stick

Are you saving the workbook with the reference added to it? I hope so, just
had to ask. Add the reference like you said in the VBE then click the Save
button. Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Excel 2007 on Vista: When I add a reference (Visual Basic; Tools/References)
to a workbook with VBA code, the macros become available and executable.
When I try to exit from this workbook with the just-added reference, it
tells me the workbook has been modified and prompts me to save it. But when
I open it back up, the reference is gone. The same process worked fine on
my old system with Excel 2000.

What am I doing wrong?


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default References to Other Workbooks Don't Stick

Yes, I'm saving it. And if I do nothing else than to add the reference and
try to exit, it prompts me to save it, so that Excel "knows" that the file
has been changed.

George

"Ryan H" wrote in message
...
Are you saving the workbook with the reference added to it? I hope so,

just
had to ask. Add the reference like you said in the VBE then click the

Save
button. Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Excel 2007 on Vista: When I add a reference (Visual Basic;

Tools/References)
to a workbook with VBA code, the macros become available and executable.
When I try to exit from this workbook with the just-added reference, it
tells me the workbook has been modified and prompts me to save it. But

when
I open it back up, the reference is gone. The same process worked fine

on
my old system with Excel 2000.

What am I doing wrong?


.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default References to Other Workbooks Don't Stick

I was able to recreat the error. The issue happed when I didn't have any
modules in both of the workbooks. If I had a module with some code in both
workbooks then save both workbooks the references held. Try that.

I assume Excel automatically drops the reference if there isn't any code in
the workbook to reference. Kinda makes sense, but it would be nice to warn
users before dropping the reference that you assign automatically because the
abscents of code.

Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Yes, I'm saving it. And if I do nothing else than to add the reference and
try to exit, it prompts me to save it, so that Excel "knows" that the file
has been changed.

George

"Ryan H" wrote in message
...
Are you saving the workbook with the reference added to it? I hope so,

just
had to ask. Add the reference like you said in the VBE then click the

Save
button. Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Excel 2007 on Vista: When I add a reference (Visual Basic;

Tools/References)
to a workbook with VBA code, the macros become available and executable.
When I try to exit from this workbook with the just-added reference, it
tells me the workbook has been modified and prompts me to save it. But

when
I open it back up, the reference is gone. The same process worked fine

on
my old system with Excel 2000.

What am I doing wrong?


.



.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default References to Other Workbooks Don't Stick

Thanks. That worked. I only had code in one of the workbooks.

But now I have a different problem. I've added my macros to the Quick
Access Toolbar, but these are not sticking either. They work fine when I
first add them to the toolbar, but they disappear after closing and
re-opening the workbook. Any suggestions?

Thanks,

George

"Ryan H" wrote in message
...
I was able to recreat the error. The issue happed when I didn't have any
modules in both of the workbooks. If I had a module with some code in

both
workbooks then save both workbooks the references held. Try that.

I assume Excel automatically drops the reference if there isn't any code

in
the workbook to reference. Kinda makes sense, but it would be nice to

warn
users before dropping the reference that you assign automatically because

the
abscents of code.

Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Yes, I'm saving it. And if I do nothing else than to add the reference

and
try to exit, it prompts me to save it, so that Excel "knows" that the

file
has been changed.

George

"Ryan H" wrote in message
...
Are you saving the workbook with the reference added to it? I hope

so,
just
had to ask. Add the reference like you said in the VBE then click

the
Save
button. Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Excel 2007 on Vista: When I add a reference (Visual Basic;

Tools/References)
to a workbook with VBA code, the macros become available and

executable.
When I try to exit from this workbook with the just-added reference,

it
tells me the workbook has been modified and prompts me to save it.

But
when
I open it back up, the reference is gone. The same process worked

fine
on
my old system with Excel 2000.

What am I doing wrong?


.



.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default References to Other Workbooks Don't Stick

I was not able to duplicate that issue. I opened a workbook, wrote a test
macro, then added the macro to the Quick Access Toolbar, saved the workbook,
closed Excel, reopened the workbook and it stayed on the toolbar.

Since this is a new issue from your original post, I'd post this as a
separate question and maybe someone else has had the problem. I can't
duplicate it.

Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Thanks. That worked. I only had code in one of the workbooks.

But now I have a different problem. I've added my macros to the Quick
Access Toolbar, but these are not sticking either. They work fine when I
first add them to the toolbar, but they disappear after closing and
re-opening the workbook. Any suggestions?

Thanks,

George

"Ryan H" wrote in message
...
I was able to recreat the error. The issue happed when I didn't have any
modules in both of the workbooks. If I had a module with some code in

both
workbooks then save both workbooks the references held. Try that.

I assume Excel automatically drops the reference if there isn't any code

in
the workbook to reference. Kinda makes sense, but it would be nice to

warn
users before dropping the reference that you assign automatically because

the
abscents of code.

Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Yes, I'm saving it. And if I do nothing else than to add the reference

and
try to exit, it prompts me to save it, so that Excel "knows" that the

file
has been changed.

George

"Ryan H" wrote in message
...
Are you saving the workbook with the reference added to it? I hope

so,
just
had to ask. Add the reference like you said in the VBE then click

the
Save
button. Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Excel 2007 on Vista: When I add a reference (Visual Basic;
Tools/References)
to a workbook with VBA code, the macros become available and

executable.
When I try to exit from this workbook with the just-added reference,

it
tells me the workbook has been modified and prompts me to save it.

But
when
I open it back up, the reference is gone. The same process worked

fine
on
my old system with Excel 2000.

What am I doing wrong?


.



.



.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default References to Other Workbooks Don't Stick

Ryan,

Will do. Thanks for your help.

George

"Ryan H" wrote in message
...
I was not able to duplicate that issue. I opened a workbook, wrote a test
macro, then added the macro to the Quick Access Toolbar, saved the

workbook,
closed Excel, reopened the workbook and it stayed on the toolbar.

Since this is a new issue from your original post, I'd post this as a
separate question and maybe someone else has had the problem. I can't
duplicate it.

Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Thanks. That worked. I only had code in one of the workbooks.

But now I have a different problem. I've added my macros to the Quick
Access Toolbar, but these are not sticking either. They work fine when

I
first add them to the toolbar, but they disappear after closing and
re-opening the workbook. Any suggestions?

Thanks,

George

"Ryan H" wrote in message
...
I was able to recreat the error. The issue happed when I didn't have

any
modules in both of the workbooks. If I had a module with some code in

both
workbooks then save both workbooks the references held. Try that.

I assume Excel automatically drops the reference if there isn't any

code
in
the workbook to reference. Kinda makes sense, but it would be nice to

warn
users before dropping the reference that you assign automatically

because
the
abscents of code.

Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Yes, I'm saving it. And if I do nothing else than to add the

reference
and
try to exit, it prompts me to save it, so that Excel "knows" that

the
file
has been changed.

George

"Ryan H" wrote in message
...
Are you saving the workbook with the reference added to it? I

hope
so,
just
had to ask. Add the reference like you said in the VBE then

click
the
Save
button. Hope this helps! If so, let me know, click "YES" below.
--
Cheers,
Ryan


"George B" wrote:

Excel 2007 on Vista: When I add a reference (Visual Basic;
Tools/References)
to a workbook with VBA code, the macros become available and

executable.
When I try to exit from this workbook with the just-added

reference,
it
tells me the workbook has been modified and prompts me to save

it.
But
when
I open it back up, the reference is gone. The same process

worked
fine
on
my old system with Excel 2000.

What am I doing wrong?


.



.



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding cells that contain references to other workbooks John Cunha Excel Worksheet Functions 2 October 22nd 09 10:25 AM
Systematically updating references to other workbooks Flipper Excel Discussion (Misc queries) 9 August 27th 09 09:22 PM
References to external workbooks Preston Excel Worksheet Functions 4 July 27th 09 07:03 PM
References to external workbooks in excel Fightin Engineer Excel Discussion (Misc queries) 2 February 6th 07 06:50 PM
References to other workbooks Mike Excel Programming 3 May 9th 06 03:04 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"