I am not a programmer so am not familiar with VB code.
I am trying to import an Excel spreadsheet into SQL. I was able to do so using SQL DTS but I don't want the user that will be doing this in the future to have to deal with SQL. I saved the DTS package as a .bas VB file and would like to just add a button to the Excel spreadsheet. I was able to get into the Visual Basic portion of Excel and import the file but if I try copying the code to the worksheet object, I get errors when trying to run.
Any help on how to do this would be appreciated (remember that I do not know VB code so was just trying to use the DTS package that was generated in SQL. Thanks in advance.
I am trying to import an Excel spreadsheet into SQL. I was able to do so using SQL DTS but I don't want the user that will be doing this in the future to have to deal with SQL. I saved the DTS package as a .bas VB file and would like to just add a button to the Excel spreadsheet. I was able to get into the Visual Basic portion of Excel and import the file but if I try copying the code to the worksheet object, I get errors when trying to run.
Any help on how to do this would be appreciated (remember that I do not know VB code so was just trying to use the DTS package that was generated in SQL. Thanks in advance.