LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Nameing a range while still selected from copy


Użytkownik "Jim at Eagle" napisał w
wiadomości ...
That worked. Every stored invoice on sheet4 is assigned the invoice

number.
Locating the range by the named allows viewing and printing. The code you
supplied will only work if sheet4 is selected. So range name is sheet
specific.
Thanks, now I can move on with frustrating myself further. Thanks again


"Macgru" wrote:


U?ytkownik "Jim at Eagle" napisa3

w
wiadomo?ci ...
I need to create a named range from an area that is still highlighted

from
a
copy paste special code before I lose the cell id. Is this possible?
Jim at Eagle



if its still selected from copy mode you can try
ActiveWorkbook.Names.Add Name:="your_name", RefersToR1C1:=Selection

you should add a number to your named range to have it done

automatically
like
i=1
......
i=i+1
mcg




try then sheest(...).selection
mcg


 
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
nameing a worksheet Lost Excel Discussion (Misc queries) 2 April 23rd 09 08:03 AM
How do I prevent copy and pasting into a selected range of a works oasalako1 Excel Discussion (Misc queries) 1 November 20th 07 01:29 PM
column nameing PAUL~H~UK Excel Discussion (Misc queries) 7 October 16th 06 11:36 PM
Programatically nameing ranges Adam Ward Excel Programming 4 May 12th 04 09:43 PM
How to Copy & Paste selected Range in Excel (MFC) Daniel Xu Excel Programming 6 November 25th 03 02:42 AM


All times are GMT +1. The time now is 02:15 AM.

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"