sandor jeges
New Member
- Joined
- May 26, 2016
- Messages
- 13
Hi,
Not sure if my last post worked or not but:
Sorry for my newbie question but I am trying to write a code to copy data over from one worksheet to another but what is copied over is dependant on certain there being data in firstly column B and then Column D (once the ISEMPTY function completes in column B i want the same criteria to be picked up but from the rule of data being in column D.
My goal is to ask the code to read off column B, if there is a code in column B, then copy to a new worksheet (that i would like to name) from the same row, but only copy a number of columns wihtin the same row. Then move to Column D and do the same. As an example:
Raw data
Column A Column B Column C Column D Column E Column F Column G Value
Type of car Seller Model of car Buyer Make of Car Transmission Date of transaction Purchase price/seller receive
New Worksheet Called "Car Varieties"
Column A Column B Column C Column D Column E Column E Column F
Seller Date of Transactions leave blank Purchase price/seller receive Model of Car leave blank Transaction reference*
Buyer Date of Transactions leave blank Purchase price/seller receive Model of Car leave blank Transaction reference*
Off course the above is just an example, in truth i have a number of lines.
*The transaction reference would be a mix of the result of Column B&Column A&Column E
I have only be able to create it so my code copies and paste the whole row which is not what i want - please help!
Cheers
Not sure if my last post worked or not but:
Sorry for my newbie question but I am trying to write a code to copy data over from one worksheet to another but what is copied over is dependant on certain there being data in firstly column B and then Column D (once the ISEMPTY function completes in column B i want the same criteria to be picked up but from the rule of data being in column D.
My goal is to ask the code to read off column B, if there is a code in column B, then copy to a new worksheet (that i would like to name) from the same row, but only copy a number of columns wihtin the same row. Then move to Column D and do the same. As an example:
Raw data
Column A Column B Column C Column D Column E Column F Column G Value
Type of car Seller Model of car Buyer Make of Car Transmission Date of transaction Purchase price/seller receive
New Worksheet Called "Car Varieties"
Column A Column B Column C Column D Column E Column E Column F
Seller Date of Transactions leave blank Purchase price/seller receive Model of Car leave blank Transaction reference*
Buyer Date of Transactions leave blank Purchase price/seller receive Model of Car leave blank Transaction reference*
Off course the above is just an example, in truth i have a number of lines.
*The transaction reference would be a mix of the result of Column B&Column A&Column E
I have only be able to create it so my code copies and paste the whole row which is not what i want - please help!
Cheers