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: 557
Default Put data by matching cell value with sheet name

Hi all, I have 4 Sheets in workbook

Sheet 1 Name: Main Data
Sheet 2 Name: 1XX
Sheet 3 Name: 2XX
Sheet 4 Name: 3XX

In Sheet("Main Data") I have data like (see below)

A B C D------col
Non 1XX 123 Bud
Non 1XX 123 Bud
Non 2XX 123 Bud
Non 2XX 123 Bud
Non 2XX 123 Bud
Non 3XX 123 Bud
Non 3XX 123 Bud
Non 3XX 123 Bud

I want macro which should check column B cells value of Sheet("Main
Data") and if that value match with any Name of Sheet in the workbook
then macro should copy that value cell row from Range(A:D) and paste
it to in range(A2) of matching name Sheet and like this next cell and
next sheet. For example according to above data in Sheet("Main Data")
macro should check column B cells value and in first two cells value
is 1XX and there is Sheet which name is also 1XX so macro should copy
these two cells rows from Range(A:D) in that Sheet in Range(A2) and it
should continue untill there is no value in column B cells. I hope I
was able to explain my question. Please can any friend can help
 
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
Hyperlinking from data in one sheet to matching data in another sheet Phrank Excel Worksheet Functions 6 December 18th 07 09:58 AM
Matching data from one sheet to another petester New Users to Excel 1 September 7th 07 02:14 AM
Finding Matching Data on Another Sheet Jana[_3_] Excel Programming 1 May 18th 07 01:18 PM
List matching data from sheet 1 in sheet 2 Thrain Excel Worksheet Functions 4 December 2nd 05 07:11 PM
Matching data and linking it to the matching cell yvonne a via OfficeKB.com Links and Linking in Excel 0 July 13th 05 07:30 PM


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