Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations LittleInch on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA macro not saving

Status
Not open for further replies.

tryingthis

Mechanical
Joined
Aug 5, 2013
Messages
6
Location
US
Hello,

I did a search for this and I found 1 answer. It said to search for "UGII_SUPPORT_XLSM_SPREADSHEET" in the log file and change the setting. That's great but it's not in my log file! Any other ideas? My VBA macro keeps getting deleted in all my internal sheets every time I close the internal spread sheet.

Thanks!!
 
Are you are referencing this thread?
thread561-324428

jpetach said:
Set the environment variable UGII_SUPPORT_XLSM_SPREADSHEET=1
This can be done in "%UGII_BASE_DIR%\ugii\ugii_env.dat"

If the environment variable doesn't show up in your ugii_env.dat file (not to be confused with your log file), you can add the line and save the file. Or, you can add it as an environment variable through Windows' control panel.

www.nxjournaling.com
 
That wasn't the thread I had found but it should work. I apologize but how to I access the .dat file? I have teamcenter and I want my excel sheet to be able to be run by anyone on their own computer, to run the macro does every user have to update their .dat file?

Thanks!
 
tryingthis said:
...does every user have to update their .dat file?

This depends on how NX is administered where you are. Generally this file will be placed on a network location and all the workstations will look for this central file. If you are not the NX administrator at your site, you won't have the proper permissions to make it work. Contact the administrator with the variable name and value and they can get it to work properly.

www.nxjournaling.com
 
It was changed, it doesn't do anything though. I'm still losing all my macros when I save and exit the sheet. Any other ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top