如何在Excel中的标题/页脚中放置&符号? [英] How to put an ampersand in a header/footer in Excel?

查看:126
本文介绍了如何在Excel中的标题/页脚中放置&符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



你好&世界



但是它忽略了& ,因为大部分内置的>函数将它评估为一个值,即



页面和页面的页面 => 第1页,共3页



& [Time] & T => 10:26



所以,如何在标题中转出&符号?

解决方案

结果是一个超简单的解决方案...



&& 从Excel中尝试评估到内置函数。



VBA中的字符串相同: hello&世界



Sheet1.PageSetup.CenterHeader =hello&&& world! p>

I am working on a header which needs an ampersand to separate two words.

Hello & World

But it ignores the & because most of the built in functions evaluate it to a value ie.

Page &[Page] of &[Pages] => Page 1 of 3

&[Time] or &T => 10:26

So, how to escape an ampersand in a header?

解决方案

It turns out to be a super simple solution ...

Double the && to escape from Excel trying to evaluate to a built-in function.

Same in VBA String for: hello & world

Sheet1.PageSetup.CenterHeader = "hello && world!"

这篇关于如何在Excel中的标题/页脚中放置&符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆