UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> import ferom excel    
 
   
Kerem
post Jun 14 2004, 03:55 PM
Post #1

UtterAccess Addict
Posts: 115
From: Toronto, Canada



I need to import specific cells from an excel spread sheet to a table in Access 2000. Is there a code to do this?
Go to the top of the page
 
+
Myke
post Jun 14 2004, 04:18 PM
Post #2

UtterAccess VIP
Posts: 2,209
From: California



Have you tried the Link Table option in Access?
This will link in the entire spreadsheet and you can append the data from that link to another table?

let me know if you need more info.
Go to the top of the page
 
+
erwardell
post Jun 14 2004, 05:51 PM
Post #3

VIP Emeritus
Posts: 1,340



DoCmd.TransferSpreadsheet acImport, , stDocName, "c:\access files\pv.xls", True, "A:D"

note the end has all of colum A through D chosen. You should be able to place in what you want there. like A1:B4 and soforth
Go to the top of the page
 
+
Maven4Champ
post Jun 14 2004, 06:09 PM
Post #4

UtterAccess Enthusiast
Posts: 60



Would you do this via creating a new Macro or Module within Access?
Go to the top of the page
 
+
erwardell
post Jun 14 2004, 06:31 PM
Post #5

VIP Emeritus
Posts: 1,340



I have it in a form to import on a click of a command button. You may be able to find the macro version of it, but I do not know. I do not like macro's prefere to run VBA it makes the size smaller and faster.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 08:09 AM