emarshall Posted February 15, 2012 Share Posted February 15, 2012 I recently upgraded to a Windows 7 64-bit machine, and after downloading and installing the VBA module for Civil 2011 and running a routine, this error came up "(Compile error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic)" The line of code is txtSelectTab = ShowFileOpenDialog("*.txt", "Tab delimited Ascii", "Select input file:", "C:\", ThisDrawing.HWND) with HWND highlighted, so i'm assuming that's the problem. I'm not much of a coder, I didn't write this particular application, but I would like to fix it if anyone can help. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.