LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Problem with Named Cells

Hello,
I've a problem that I cannot change/move a named cell to another location.
To copy information to a specific cell in the worksheet I named it (LastCell).
When I've copied the information, I want to name the next cell below to the
same name but it does not work. Here is how it looks:
Sub DocFinalize()
CurrDoc = Worksheets("Docs").Range("DocType")
Worksheets("Docs").Range("DocLine").Copy
With Worksheets("Docs").Range("LastCell")
.Select
.PasteSpecial (xlValues) ' (It copies several cell values from the
ranged row"DocLine")
.PasteSpecial (xlFormats)
End With
Application.CutCopyMode = False
Worksheets("Docs").Range("LastCell").Select
ActiveCell.Offset(1, 0).Names Add = "LastCell"
I can navigate properly to the new cell but it doesn't matter how I do it,
I can never name the cell to LastCell like I do when selecting
Insert/Name/Define/....
Strangely, I can name the cell with the Value in the previous cell but never
the Name
Looking forward to your (simple) solutions!?!?
Best regards
Mats

 
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
Named ranged selection problem Martin B Excel Worksheet Functions 3 January 4th 08 09:32 PM
Series Named Range Problem Arturo Charts and Charting in Excel 1 July 3rd 07 09:31 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Problem Working with Named Ranges montgomerymouse Excel Discussion (Misc queries) 1 January 10th 05 10:45 PM


All times are GMT +1. The time now is 02:51 PM.

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

About Us

"It's about Microsoft Excel"