我有一个Excel文档,其中有几个名称范围,这些范围当前保存到静态网页。我最近试图将它们转换为动态范围,并在Excel表本身的上下文中了解到了命名范围的动态功能,但一旦Excel试图将它们保存为静态网页,就会失败。
例如,我有一个范围的
YardtableTlists!$ ec $ 1:$ ee $ 101
有时内容超过界限,或者我的网页上有空行。
动态替代方案是
= offset(yardtabletlists!$ ec $ 1,0,0,counta(yardtabletlists!$ ec $ $ 1:$ ec $ $ 10000)+1,3)+1,3)
如果我将此名称范围引用,当时该名称范围范围在任何地方,但是当它起作用,但是当它工作时,但是Autopublish做了此事,我会收到以下错误。
<
然后将名称的愤怒定向到该单元格... IE
名称范围定向到= E4,E4包含YardtableTlists!$ ec $ 1:$ ee $ 101,但我感到会给我带来同样的问题。
感谢那些阅读此书的人。
I have a excel document that has several name ranges that are currently save to static web pages. I have recently tried to conver them to dynamic ranges, and have learned the dynamic named ranges work great within the context of the excel sheet itself, but fail once excel tries to save them as the static web page.
For example, I have a range
YardTabletLists!$EC$1:$EE$101
sometimes the content is exceeds the bounds or I have empty rows on my webpage.
the dynamic alternative is
=OFFSET(YardTabletLists!$EC$1,0,0,COUNTA(YardTabletLists!$EC$1:$EC$10000)+1,3)
If i refernce this name range anywhere within the sheet, it works, but when AutoPublish does it thing, I get the following error.
Error Notice
I was thinking of trying to conver the Dynamic range back to a static range somehow, and then direct the name rage to that Cell.... i.e.
Name range is directed to =E4, and E4 contains YardTabletLists!$EC$1:$EE$101, but I get the feeling that will give me the same issue.
Thanks to those who read this.
发布评论
评论(1)
不熟悉静态网页功能。
但是可以定义和使用“表”而不是“命名范围”吗?
每当修改表尺寸时,“ Table” Excel在内部都可以在内部处理正确的范围。
似乎静态网页功能还支持“过滤范围”。这是否可以是一个工作,例如过滤空白行(将最大线号作为静态范围)?
在Excel中,间接参考(您与E4的示例)有些棘手。我只使用一次来定义下拉列表的列表。
Muss受到该功能的支持,需要“特殊”语法
更新:
我找到了一些vba更新名称范围的示例,还有一个好的示例似乎可以回答这个问题:
https://excelchamps.com/vba/named-range/#Resizing_a_Named_Range_using_VBA_Dynamic_Named_Range
for some reason the program hangs up at
ActiveSheet.Range("myRange" )_
.resize(iRow,icolumn).name =“ myrange”
是否有人看到我缺少的语法错误?
谢谢 :)
Not familiar with static webpage feature.
But possible to define and use “table” instead of “named range”?
With “table” Excel internally handles the correct range whenever the table size is modified.
Seems the static webpage feature supports also “filtered ranges”. Could this be a work-around, e.g. to filter out blank lines (while using max line number as static range)?
Indirect references (your example with E4) are a little tricky in Excel. I only used it once to define a list for a dropdown.
Muss be supported by the feature and requires “special” syntax
Update:
I have found some examples for VBA updating name ranges, and one excellent example that appears to answer the question:
https://excelchamps.com/vba/named-range/#Resizing_a_Named_Range_using_VBA_Dynamic_Named_Range
for some reason the program hangs up at
ActiveSheet.Range("myRange") _
.Resize(iRow, iColumn).Name = "myRange"
does anyone see perhaps a syntax error I am missing?
Thank you :)