A
Arni Laugdal
Does someone know how I can use System Variables in VBA
code to get specific folder position?
For example would I like to use:
%UserProfile% instead of
"C:\Documents and Settings\TheUser"
%AppData% instead of
"C:\Documents and Settings\TheUser\Application Data"
%WinDir% instead of
"C:\WINDOWS"
%Temp% instead of
C:\DOCUME~1\arnil\LOCALS~1\Temp
Practical use is for example when sending table to an
Excel workbook on the desktop:
DoCmd.TransferSpreadsheet acExport, _
acSpreadsheetTypeExcel9, _
"tblTest", SomeMagicUsing%UserProfile% & _
"Desktop\Test.xls", True
Thanks,
Arni Laugdal.
code to get specific folder position?
For example would I like to use:
%UserProfile% instead of
"C:\Documents and Settings\TheUser"
%AppData% instead of
"C:\Documents and Settings\TheUser\Application Data"
%WinDir% instead of
"C:\WINDOWS"
%Temp% instead of
C:\DOCUME~1\arnil\LOCALS~1\Temp
Practical use is for example when sending table to an
Excel workbook on the desktop:
DoCmd.TransferSpreadsheet acExport, _
acSpreadsheetTypeExcel9, _
"tblTest", SomeMagicUsing%UserProfile% & _
"Desktop\Test.xls", True
Thanks,
Arni Laugdal.