Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Secret Squirrel
 
Posts: n/a
Default Transfer data from Excel to Access

Can anyone help me create some code that will do the following?

I need to upload/transfer specific cells in Excel to an existing table
in Access. These cells are specific to records in my table. For
example, "C1" needs to be uploaded to "tblPrice". The field it needs to
be put in is "Surcharge". The record is "10". How do I write the code
to make this happen? Any help would be greatly appreciated. I'm not the
familiar with writing this type of code.

  #2   Report Post  
Posted to microsoft.public.excel.misc
FSt1
 
Posts: n/a
Default Transfer data from Excel to Access

hi,
I think it would be easier to link the excel table to access. this way any
changes made to the excel table(named range) would automaticly reflect in
Access. You would need to write code to resize the excel table(named range)
on file exit in case you have added new records to the excel table. Access
would view the linked excel table as an access table. you could then write an
update query in access to transfer the data and access has a wizard for that.
code to resize excel table
Range(Range("A65500").End(xlUp), _
Range("A65500").End(xlUp).End(xlUp).Offset(0, 2)).Select
ActiveWorkbook.Names.Add Name:="MyRange", RefersTo:= _
Selection
use the file close event so you don't forget and you can also add a button
or icon.

after thought. down load your access table to excel, make the changes there.

regards
FSt1

"Secret Squirrel" wrote:

Can anyone help me create some code that will do the following?

I need to upload/transfer specific cells in Excel to an existing table
in Access. These cells are specific to records in my table. For
example, "C1" needs to be uploaded to "tblPrice". The field it needs to
be put in is "Surcharge". The record is "10". How do I write the code
to make this happen? Any help would be greatly appreciated. I'm not the
familiar with writing this type of code.

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
transfer data from one excel sheet to another Exceloficio New Users to Excel 3 January 30th 06 05:40 AM
HOW DO I TRANSFER DATA FROM EXCEL SPREADSHEET TO OUTLOOK msmagoo Excel Discussion (Misc queries) 1 January 16th 06 05:33 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
New Excel data does not appear in linked Access table JohnL Excel Discussion (Misc queries) 0 October 7th 05 04:31 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM


All times are GMT +1. The time now is 03:48 AM.

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

About Us

"It's about Microsoft Excel"