OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

copy sheet and defined names

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
Tom P
General User
General User


Joined: 18 Oct 2010
Posts: 12

PostPosted: Fri May 13, 2011 7:57 am    Post subject: copy sheet and defined names Reply with quote

Apologies if this has been covered elsewhere, but I couldn't find anything.

I have a sheet and I have defined various cells with names, and use these names to define contents of other cells on the same sheet.
For example,
xyz is defined as cell $Sheet1.$B$5, and I have some other cell $B$6 with contents xyz*xyz-1.0

If I then copy the sheet, the new sheet is called $Sheet1_2, but $Sheet1_2.$B$6 still refers to the original definition of xyz on Sheet1, and not $Sheet2.$B$5.

Is there some way to to copy the sheet so that cells refer to the copy and not to the original sheet? Put another way - can names be defined to be local to the sheet and not global?

(Note - typo edited)
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Fri May 13, 2011 8:46 am    Post subject: Reply with quote

Replace the named reference
$Sheet1.$B$5
with
Sheet1.$B$5 (relative sheet reference)

[Tutorial] Absolute, relative and mixed references
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
Tom P
General User
General User


Joined: 18 Oct 2010
Posts: 12

PostPosted: Fri May 13, 2011 1:37 pm    Post subject: Reply with quote

Great! That's what I need.
Is there a way to make this the default behaviour when you add a name definition?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group