A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula references when copying a workbook



 
 
Thread Tools Display Modes
  #1  
Old November 5th, 2003, 01:41 PM
Charlie
external usenet poster
 
Posts: n/a
Default Formula references when copying a workbook

It has been a long time since I asked this question to this problem. The
answer was simple but I forgot what it was.

I have a template spreadsheet I created over 2 years ago for my office
people. It contains 5 tabs, 3 are databases, the other 2 are master lists.
The master list tabs are copied as daily data entry sheets for each work day
of the week. At the end of the month there are generally around 45 tabs
total.

The databases and master lists are update daily as needed so at the end of
the month the workbook is copied and all daily data entry tabs for the
previous month are deleted and the cycle starts over.

Once I instructed my office people on how to make a copy of the workbook for
the next month I kinda got away from monitoring its use. Now an old problem
resurfaced and I forgot why. The master tabs have lookup formulas to the 3
databases. For the current month the formula on the master tabs and each
copy would go something like this.

=vlookup(b2,database!$A$4:$F$250,5,False) Lets call this workbook Oct.xls

Once the workbook is copied for the month of Novemember, the formulas
references now refer to the Oct.xls instead of the newly created Nov.xls. I
forgot how to copy the workbook. Should it be copy - paste from the
explorer and then rename it or save as from inside the workbook to have the
formulas rename themselves to the new workbook name?

And don't I need this code placed in ThisWorkbook to maintain the reference?

Public Sub global_variable()
Public mybook
End Sub

Thanks,
Charlie



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:53 PM.


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