十进制到十六进制VBA

编程入门 行业动态 更新时间:2024-10-26 04:21:03
本文介绍了十进制到十六进制VBA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道如何在不使用十六进制函数和数组的情况下将十进制数转换为十六进制数?我将使用for循环,因为我需要将一组十进制数转换为十六进制数。

I was wondering how to convert decimal numbers to hexadecimal numbers without using the hex function and arrays? I will be using a for loop because I need to convert a set of decimal numbers to hexadecimal numbers.

感谢所有的帮助。

推荐答案

你有什么帮助在不使用十六进制函数的情况下获取十六进制值?从循环中调用以下内容,其中sNum是您要转换的数字。

What did you have in mind to get the hex value without using the hex function? Call the following from your loop where sNum is the number you wish to convert.

函数GetHex(sNum As Integer)字符串 GetHex = Hex(sNum) 结束功能

Function GetHex(sNum As Integer) As String GetHex = Hex(sNum) End Functionn

更多推荐

十进制到十六进制VBA

本文发布于:2023-11-08 13:29:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569500.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:十进制到十六进制   VBA

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!