Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to program a macro using VBA in Excel 97 SR-1.
I've included a common dialog box control that opens the directory tree so the user can pick a file. This works fine on my machine but when I send the spreadsheet to others users they get an error saying that the dialog box can't be created. When I try to include a dialog box to the spreadsheet from their computer, I get a "Cannot insert object" error. When I try to put a cdb on a UserForm in the spreadsheet on a user machine, I get a License error. I've tried registering the .dll and .ocx involved using regsvr32. I'm not sure if a guid is wrong or a license key in the registry is wrong or what. I'm not really sure where to look in the registry for the license key. What I don't understand is why I can't include this control from their computer? The common dialog control is checked under the 'References' section. I should be able to re-create the macro from a user machine without running into the licensing issue, right? Anyone have any thoughts on how I could get around this problem? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
it is easier to use
fname = Application.GetOpenfileName( ... see arg list in help ) Which puts up the standard file open dialog and returns a string (or array of strings if multiselect = true) of the file(s) selected by the user. It does not open the files. You use the string (array) to then open the files. There is also an Application.GetSaveAsFilename Regards, Tom Ogilvy "pat" wrote in message ... I'm trying to program a macro using VBA in Excel 97 SR-1. I've included a common dialog box control that opens the directory tree so the user can pick a file. This works fine on my machine but when I send the spreadsheet to others users they get an error saying that the dialog box can't be created. When I try to include a dialog box to the spreadsheet from their computer, I get a "Cannot insert object" error. When I try to put a cdb on a UserForm in the spreadsheet on a user machine, I get a License error. I've tried registering the .dll and .ocx involved using regsvr32. I'm not sure if a guid is wrong or a license key in the registry is wrong or what. I'm not really sure where to look in the registry for the license key. What I don't understand is why I can't include this control from their computer? The common dialog control is checked under the 'References' section. I should be able to re-create the macro from a user machine without running into the licensing issue, right? Anyone have any thoughts on how I could get around this problem? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excellent! Thanks a lot, Tom.
"Tom Ogilvy" wrote in message ... it is easier to use fname = Application.GetOpenfileName( ... see arg list in help ) Which puts up the standard file open dialog and returns a string (or array of strings if multiselect = true) of the file(s) selected by the user. It does not open the files. You use the string (array) to then open the files. There is also an Application.GetSaveAsFilename Regards, Tom Ogilvy "pat" wrote in message ... I'm trying to program a macro using VBA in Excel 97 SR-1. I've included a common dialog box control that opens the directory tree so the user can pick a file. This works fine on my machine but when I send the spreadsheet to others users they get an error saying that the dialog box can't be created. When I try to include a dialog box to the spreadsheet from their computer, I get a "Cannot insert object" error. When I try to put a cdb on a UserForm in the spreadsheet on a user machine, I get a License error. I've tried registering the .dll and .ocx involved using regsvr32. I'm not sure if a guid is wrong or a license key in the registry is wrong or what. I'm not really sure where to look in the registry for the license key. What I don't understand is why I can't include this control from their computer? The common dialog control is checked under the 'References' section. I should be able to re-create the macro from a user machine without running into the licensing issue, right? Anyone have any thoughts on how I could get around this problem? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Second Most Common Value | Excel Discussion (Misc queries) | |||
Combining two ranges based on common a common value | Excel Discussion (Misc queries) | |||
Common footer but not common margins please -(Page 1 of 2) etc | Excel Discussion (Misc queries) | |||
Common Dialog from Toolbox | New Users to Excel | |||
How to delete the "Insert Function Dialog Box" (dialog box only)? | Excel Worksheet Functions |