You can make a file in VBA (in the% appdata% folder) and save the value of the text fields in this file ( for example, .ini file ).
And after that open the file in C #.
VBA file (.xlsm)
' PtrSafe for 64bit (for 32bit, remove it) Private Declare PtrSafe Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" _ (ByVal lpApplicationName As String, ByVal lpKeyName As Any, _ ByVal lpString As Any, ByVal lpFileName As String) As Long Private Sub TextBox1_Change() WritePrivateProfileString "Page1", "TextBox1", TextBox1.Text, "C:\Users\HS\Desktop\exceltab.ini" End Sub
C: \ Users \ HS \ Desktop \ exceltab.ini
[Page1] TextBox1=ok

Hors sujet
source share