利用Excel的宏如何斜向生成随机数

如题所述

ActiveCell.FormulaR1C1 = WorksheetFunction.RandBetween(0, 100000000)'这个是生成随机数的0-100000000
    ActiveCell.Select
    With Selection
        .HorizontalAlignment = xlGeneral
        .VerticalAlignment = xlCenter
        .WrapText = False
        .Orientation = 26
        .AddIndent = False
        .IndentLevel = 0
        .ShrinkToFit = False
        .ReadingOrder = xlContext
        .MergeCells = False
    End With
温馨提示:答案为网友推荐,仅供参考
相似回答