LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Converting Excel worksheets for Access

I am needing to convert data from several workbooks so that I can import it
into Access. The worksheets are laid out similar to the following:

CustomerNumber # of Rows to add AccountNumbers
Original sheet

36798 3 158008 301976 897736 897728
37253 0 773751
37320 0 777838
37960 0 3770
38066 0 100216254
38562 1 91383 320978


Completed sheet

36798 3 158008
36798 301976
36798 897736
36798 897728
37253 0 773751
37320 0 777838
37960 0 3770
38066 0 100216254
38562 1 91383
38562 320978

I can do all of this manually using the Insert rows, copy and paste special,
transpose, etc. commands but I will wear out my keyboard and fingers doing as
many records as I have and am going to have.

What I would like is a macro that will read the number of rows that need to
be inserted, copy the applicable account numbers, paste them using the paste
special, transpose, and then copy the customer number down the same number of
rows.

Deleting the "old" account numbers would be nice but I can easily do that by
deleting the columns later.

Some of the customers have 30, 40, 50, or more account numbers and I have
calculated the number of rows to enter in the second column.

Your help is appreciated as I am not very good at programming and learn (and
copy) a lot from searching this and other discussion groups.
 
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
Need help converting MS Access to Excel mustaine Excel Discussion (Misc queries) 3 March 28th 07 12:00 AM
Converting a Access routine into an Excel macro? turtle[_2_] Excel Discussion (Misc queries) 2 February 21st 07 06:38 PM
Converting Excel spreadsheet with formulae to Access database AndyL82 Excel Discussion (Misc queries) 1 February 3rd 07 06:53 PM
Converting Excel Worksheets into PDF Jonx[_2_] Excel Programming 5 August 17th 04 03:33 AM
Converting Access dll calls to Excel program Pal Excel Programming 1 February 1st 04 04:52 PM


All times are GMT +1. The time now is 10:23 PM.

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"