ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   paste named range on each sheet created (https://www.excelbanter.com/excel-programming/439284-paste-named-range-each-sheet-created.html)

J.W. Aldridge

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.


JLGWhiz[_2_]

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.




Barb Reinhardt

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.

.


Mike H

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.

.


Peter T

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.




Barb Reinhardt

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.

.


Mike H

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.

.



All times are GMT +1. The time now is 06:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com