相关疑难解决方法(0)

如何使用Excel VBA有效地对字符串进行base64编码?

我需要在VBA中将100KB +字符串编码为base64.是否有任何可用的内置函数或COM对象,因为纯VBA方法要么复杂,要么在这些卷上无法很好地扩展(请参阅dbbmarxidad的链接)?

excel base64 encoding vba excel-vba

29
推荐指数
3
解决办法
9万
查看次数

Excel 2013 VBA错误

我收到了以下错误.

Compile error: The code in this project must be updated for use on 64-bit systems.
Run Code Online (Sandbox Code Playgroud)

VBA代码

Option Explicit

Private Declare Function URLDownloadToFile Lib "urlmon" _
Alias "URLDownloadToFileA" (ByVal pCaller As Long, _
ByVal szURL As String, ByVal szFileName As String, _
ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long

Dim Ret As Long

'~~> This is where the images will be saved. Change as applicable
Const FolderName As String = "C:\Temp\"
Run Code Online (Sandbox Code Playgroud)

它在Excel 2010中工作正常.

谢谢.

编辑

我得到的错误是Ret …

excel 64-bit vba excel-2013

6
推荐指数
1
解决办法
8489
查看次数

标签 统计

excel ×2

vba ×2

64-bit ×1

base64 ×1

encoding ×1

excel-2013 ×1

excel-vba ×1