ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   transfer spread sheet (https://www.excelbanter.com/excel-programming/341405-transfer-spread-sheet.html)

Access

transfer spread sheet
 
i wish to create a button in excel worksheet by clicking on which i can
transfer the data in the master sheet to a table in access.

please help me with the VBA code

Many thanx in advance

Dave Patrick

transfer spread sheet
 
It might be easier to create a macro in Access to do the transferspreadsheet
function then call the macro.

Dim appAccess, strConPathToDB
strConPathToDB = "D:\data\Access\db1.mdb"
Set appAccess = CreateObject("Access.Application.11")
appAccess.OpenCurrentDatabase strConPathToDB
appAccess.DoCmd.RunMacro "TestMacro"
appAccess.Quit
Set appAccess = Nothing

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Access" wrote:
|i wish to create a button in excel worksheet by clicking on which i can
| transfer the data in the master sheet to a table in access.
|
| please help me with the VBA code
|
| Many thanx in advance




All times are GMT +1. The time now is 03:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com