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: 11
Default Merging worksheet - ideas

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/

Thanks in advance


-Simon

 
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
Loss Run on Excel worksheet......Any Ideas?? AK226 Excel Worksheet Functions 6 November 1st 07 05:20 PM
Merging from one worksheet to another SHills Excel Discussion (Misc queries) 1 August 7th 06 04:02 PM
merging two worksheet [email protected] Excel Worksheet Functions 1 May 18th 06 09:08 AM
Worksheet Merging mortals Excel Programming 0 December 7th 05 10:00 PM


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