惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
P
Palo Alto Networks Blog
T
Threatpost
T
Tor Project blog
T
Tenable Blog
AWS News Blog
AWS News Blog
Project Zero
Project Zero
L
LangChain Blog
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Latest
Security Latest
云风的 BLOG
云风的 BLOG
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
K
Kaspersky official blog
Jina AI
Jina AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
IT之家
IT之家
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog

博客园 - 10cn.net

expdp/impdp 远程DB访问(跨服务器创建DB连接) DIV居中(水平&垂直) PHPMailer&Gmail FOR vROW_CUR IN vCUR(PARA1, PARA2) LOOP の使い方 JavaScript Trim IE6中,一个Button同时打开两个下载窗口,并且可以自动关闭 Oracle中复制表结构和表数据 Excel列字母与数字的转换 VS在进行调试时,不能调试的原因列举如下 Create User OS中9个是危险较大的服务 .Net开发人员应该下载的十种必备工具 IIS 中 "另一个程序正在使用此文件,进程无法访问!" JS页面刷新 批处理命令学习(二) 批处理命令学习(一) clean_vss_files.bat Oracle: import tables use .dmp file in PL/SQL Developer
Excel 列号转换为字母(VBA)
10cn.net · 2009-07-09 · via 博客园 - 10cn.net

使用下列算法可以实现“ConvertToLetter”功能:

  1. 列号除以 27,然后将得到的整数赋值给变量“i”。
  2. 列号减去 i*26,然后将所得结果赋值给变量“j”。
  3. 将得到的整数值转换为其对应的字母字符,“i”和“j”的取值范围将分别为 0 至 26。

例如:列号为 30。

  1. 列号除以 27:30 / 27 = 1.1111,由“Int”函数四舍五入后得“1”。
    i = 1
  2. 下一个列号 - (i * 26) = 30 -(1 * 26) = 30 - 26 = 4。
    j = 4
  3. 将得到的整数值分别转换为其对应的字母字符,
    i = 1 =“A”
    j = 4 =“D”
  4. 将这两个字母组合在一起就形成了列指示符“AD”。

下面的 VBA 函数就是一种将列号值转换为其对应字母字符的方法:

 1 Function ConvertToLetter(iCol As IntegerAs String
 2    Dim iAlpha As Integer
 3    Dim iRemainder As Integer
 4    iAlpha = Int(iCol / 27)
 5    iRemainder = iCol - (iAlpha * 26)
 6    If iAlpha > 0 Then
 7       ConvertToLetter = Chr(iAlpha + 64)
 8    End If
 9    If iRemainder > 0 Then
10       ConvertToLetter = ConvertToLetter & Chr(iRemainder + 64)
11    End If
12 End Function
13 

注意:此函数仅将传递给它的整数转换为其对应的字母数字文本字符,不改变实际工作表上的列标题或行标题的外观。