Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default paste named range on each sheet created

For each new sheet created (workbook code), paste named range "apples"
at the next available/empty row in column A.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default paste named range on each sheet created

ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1,0) = "Apples"



"J.W. Aldridge" wrote in message
...
For each new sheet created (workbook code), paste named range "apples"
at the next available/empty row in column A.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default paste named range on each sheet created

You're going to need to describe what you want in a bit more detail.

Barb Reinhardt



"J.W. Aldridge" wrote:

For each new sheet created (workbook code), paste named range "apples"
at the next available/empty row in column A.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default paste named range on each sheet created

Hi,

You can't do that because named ranges must be unique even if on different
worksheets.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"J.W. Aldridge" wrote:

For each new sheet created (workbook code), paste named range "apples"
at the next available/empty row in column A.

.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default paste named range on each sheet created

You can have the same named range on each worksheet as long as the scope is a
worksheet range, not a workbook range. I've done it a lot. But the
question didn't make sense for what was to be the range.

Barb Reinhardt



"Mike H" wrote:

Hi,

You can't do that because named ranges must be unique even if on different
worksheets.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"J.W. Aldridge" wrote:

For each new sheet created (workbook code), paste named range "apples"
at the next available/empty row in column A.

.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default paste named range on each sheet created

I agree the question never made sense but based upon

For each new sheet created (workbook code),


I (probably wrongly) interpreted the range as being workbook too.

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Barb Reinhardt" wrote:

You can have the same named range on each worksheet as long as the scope is a
worksheet range, not a workbook range. I've done it a lot. But the
question didn't make sense for what was to be the range.

Barb Reinhardt



"Mike H" wrote:

Hi,

You can't do that because named ranges must be unique even if on different
worksheets.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"J.W. Aldridge" wrote:

For each new sheet created (workbook code), paste named range "apples"
at the next available/empty row in column A.

.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default paste named range on each sheet created

The question doesn't make sense, by definition the first empty row on a new
sheet will always be row-1 (and the first empty column also 1 not that you
specified which column you want to paste to).

In addition to clarifying the above confirm the named range "apples" is a
workbook level name that you have already defined, and that the range refers
to a single area (or otherwise).

Regards,
Peter T


"J.W. Aldridge" wrote in message
...
For each new sheet created (workbook code), paste named range "apples"
at the next available/empty row in column A.



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
paste named range for each new sheet created J.W. Aldridge Excel Programming 3 April 23rd 09 10:22 PM
Accessing a macro created named range John Excel Programming 7 February 5th 09 04:12 PM
Finding a named range based on cell value and copy/paste to same sheet? Simon Lloyd[_715_] Excel Programming 1 May 11th 06 11:25 PM
Copy/paste the template whenever new sheet is created Telecommm Excel Programming 2 December 29th 05 05:29 AM
New Named Range Created Each Time Data Imported into Excel via Macro Carroll Rinehart Excel Programming 2 October 28th 04 04:33 PM


All times are GMT +1. The time now is 03:18 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"