dethredic Posted March 11, 2010 Posted March 11, 2010 So I have a macro here that will copy some information from a spreadsheet to an access database.I want to change it so it is its own file, and when run the user is asked what spreadsheet they want to export to the database.I will need to include the "Microsoft DAO 3.6 Object Library" (currently I have it checked off under references)I have installed Microsoft visual basic 2008 express, and pasted my code in there but there are lots of "undeclared" office functions / objects like:ApplicationExcelActiveWorkbookDatabaseOpenDatabasedbOpenTableRangeWorksheetwhat would I need to import to get access to these things?
gunsmokingman Posted March 11, 2010 Posted March 11, 2010 I dont know if this is what you want 1:\ In Microsoft visual basic 2008 express toolbar open the Project 2:\ From The Project ToolBar Select Add ReferenceThis will open a dialog where you can add various objects to your project, from this dialog.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now