Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Open Access, Paste data to table, and close all from Excel Macro

I have a macro that i have written to pull information in and format it from
a .txt file. I want to add code to the existing macro that will open an
existing Access database, open a table within that database, and paste the
data that has been copied from the excel file.

I have been searching but there is so much information to sift through it is
a little cumbersome. Any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Open Access, Paste data to table, and close all from Excel Macro

I do not know how to control Access via Excel. I usually just pushed my data
into an excel sheet and run the following macro in Access.

Sub tr9418()
DoCmd.TransferSpreadsheet acImport, , "tr9418",
"c:\feb2006\test4access.xls", True

End Sub

"learningaccess" wrote:

I have a macro that i have written to pull information in and format it from
a .txt file. I want to add code to the existing macro that will open an
existing Access database, open a table within that database, and paste the
data that has been copied from the excel file.

I have been searching but there is so much information to sift through it is
a little cumbersome. Any help would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Open Access, Paste data to table, and close all from Excel Mac

Does that overwrite existing data that is in the table in the database? I
only want to add the new information to what is already there.

Thanks

"fugazi48" wrote:

I do not know how to control Access via Excel. I usually just pushed my data
into an excel sheet and run the following macro in Access.

Sub tr9418()
DoCmd.TransferSpreadsheet acImport, , "tr9418",
"c:\feb2006\test4access.xls", True

End Sub

"learningaccess" wrote:

I have a macro that i have written to pull information in and format it from
a .txt file. I want to add code to the existing macro that will open an
existing Access database, open a table within that database, and paste the
data that has been copied from the excel file.

I have been searching but there is so much information to sift through it is
a little cumbersome. Any help would be greatly appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open book, copy and paste from sheet, and then close.... Darin Kramer Excel Programming 5 September 14th 06 04:00 PM
Importing data from Access to Excel, but I need to vary the table from Access Liz L. Excel Programming 3 June 6th 06 02:12 AM
Open an Access table in Excel ray_johnson Excel Discussion (Misc queries) 0 May 12th 06 06:01 PM
Macro to open and close an Excel file Magnivy Excel Programming 5 March 13th 06 03:29 PM
How do I Append excel data to a Access database table in a excel macro? Pete[_24_] Excel Programming 1 November 2nd 05 06:40 PM


All times are GMT +1. The time now is 11:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"