Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Add Excel data to Access

hi all,

I'd like to add a command button "Add" on my worksheet to automatically
populate all data (about 50 rows every time) to an Access table "tbl_input"
with special condition. Please see example below:

data on worksheet starting cell B3,
A 20 20 40 20 40
A 40 30 40 30 30
B 30 60 20 30 50
C 100 80 60 80 40
.......

I'd like the VBA code (macro) to populate the data in this way please.
for data "A 20 20 40 20 40", I'd like to put "A" in "size" field of
"tbl_input" in Access db, "20" in field "A1", the next "20" in field "A2",
and so on....

for data "B 30 60 20 30 50", put "B" in "size" field" of "tbl_input" in
the same db, the put the rest in field "B1", "B2", "B3", and so on...

similarly for data "C 100 80 60 80 40", in "Size", "C1", "C2",....

Thanks in advance for your help!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Add Excel data to Access

Start he

http://www.erlandsendata.no/english/...php?t=envbadac

"Huaqin" wrote:

hi all,

I'd like to add a command button "Add" on my worksheet to automatically
populate all data (about 50 rows every time) to an Access table "tbl_input"
with special condition. Please see example below:

data on worksheet starting cell B3,
A 20 20 40 20 40
A 40 30 40 30 30
B 30 60 20 30 50
C 100 80 60 80 40
......

I'd like the VBA code (macro) to populate the data in this way please.
for data "A 20 20 40 20 40", I'd like to put "A" in "size" field of
"tbl_input" in Access db, "20" in field "A1", the next "20" in field "A2",
and so on....

for data "B 30 60 20 30 50", put "B" in "size" field" of "tbl_input" in
the same db, the put the rest in field "B1", "B2", "B3", and so on...

similarly for data "C 100 80 60 80 40", in "Size", "C1", "C2",....

Thanks in advance for your help!

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
Can Excel access data from Access?! Al Excel Discussion (Misc queries) 5 April 5th 08 03:52 PM
best way to get data from Access to Excel? deko[_2_] Excel Programming 4 February 27th 05 12:25 AM
How do you get data to/from Access DB in Excel VB? Nick R[_2_] Excel Programming 1 December 23rd 04 12:51 PM
Access data -work in Excel- save in Access s_u_resh Excel Programming 1 October 25th 04 12:52 PM
Data from Excel to Access No Name Excel Programming 2 August 20th 04 11:04 AM


All times are GMT +1. The time now is 11:36 AM.

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"