Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Worksheet Merging

Hi guys,

I'm back with a somewhat simple yet complicated problem. I have 2
separate worksheets with different headers but corresponding columns
that I need to merge. They would look something like this.

Sheet1
Part
Description
Last Use
Last Purchase Order
Buyer

Sheet2
Part
Price
Quoted Price
Last Use
Buyer


The corresponding columns that I want are Part, Last Use and Buyer

I've been trying to figure out how to merge these 2 worksheets and can
only come up with a really bad pseudo code for it. =/

Copy entire sheet1 onto sheet3
Delete unwanted column

while loop to count number of rows occupied on sheet3 (Dim x as long)

another while loop with Dim y as long, y=2 for sheet2
x+1
while sheet2!Ay is not null,
sheet3Ax = sheet2!Ay


Thats the best I can come up with. =/ Seems a little troublesome. Can
anyone come up with a better solution?

*Note* I can do a while loop in the beginning to copy over only the
columns I want as well and that will pretty much take the place of the
counting loop/

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
Help with Worksheet Merging Macro Joe[_9_] New Users to Excel 13 January 21st 08 12:23 AM
Merging from one worksheet to another SHills Excel Discussion (Misc queries) 1 August 7th 06 04:02 PM
Merging cells in the center of a worksheet nevermore627 Excel Worksheet Functions 1 July 20th 06 06:14 PM
merging two worksheet [email protected] Excel Worksheet Functions 1 May 18th 06 09:08 AM
Merging worksheet data leecou Excel Discussion (Misc queries) 2 October 4th 05 11:34 PM


All times are GMT +1. The time now is 05:09 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"