ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Sub Ger_sinal()
Dim sinal() As integerReDim sinal(3)'Test valuessinal(0) = -22306sinal(1) = 5836sinal(2) = 0sinal(3) = 23326'Creates a file and puts the values in itDim n_arq As IntegerDim path As Stringpath = "C:\Users\DELL\Desktop\App\WAVs\Sinal_VBA.wav"Set fs = CreateObject("Scripting.FileSystemObject")Set a = fs.CreateTextFile(path, True)a.Closen_arq = FreeFileOpen path For Binary As n_arqPut n_arq, , sinalClose n_arqEnd Sub