Message 1 of 37
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I just posted this 2 mins ago and it got deleted by someone in the forum page, so sorry if its not as detailed cause I am furious right now about it getting deleted
I am trying to create a macro that opens HTML files using Microsoft Word but get an error saying no program appears to be associated...
Does anyone know the right command to open HTML files?
FUNCTION Main (STRING $Selected_NCProgram)
{
// Execute preliminary commands
KEEP SETUPSHEETS NCPROGRAM SELECTED
TEXTINFO ACCEPT
SPLITTER TABEXPLORE
// Get the main project directory and construct the correct path
STRING mainDirectory = dirname(project_pathname(0), "/")
STRING projectSubfolder = project.Name + ""
STRING htmlFilePath = mainDirectory + "/" + projectSubfolder + "/SetupSheets_files/project_sheets/lineup sheet.html"
// Attempt to open the specified .html file in the correct directory
OLE FILEACTION 'open' $htmlFilePath
}
Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro
Solved! Go to Solution.