VBA to copy and paste the adjacaent value

abhishukla15

New Member
Joined
May 12, 2015
Messages
31
Hi,

I'm new to macro and trying to create a macro which copy the adjacent cells values of an item and paste the values to other sheet.

Ex.

In a Worksheet A, I have values in Column A-D. Column D has all month entries and Column C has sales data associated with those months. There is multiple entries of a month in Column D. Now I want to write a vba which search all the entries of a specific month (Eg. Feb) in Column D and copy its associate value of column C to another worksheet B.

Thanks in advance for the help.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
We always need specific details
1. What are the two sheet names?
2. What exactly do you have in column D
3. Do you have like Jan or Feb or do you have like 1/18/2018
4. And how do you want to tell the script what month to look for?
5. Do you want a Inputbox to pop up and you enter the search value in the Inputbox
6. And where in the second sheet do you want the results entered.
7. And what do you want copied to the second sheet?
8. Do you want the whole row copied or what?

You see we need specific details.
 
Upvote 0
abhishukla15,

It would help if we could see your actual raw data workbook/worksheets, and, what the results (manually formatted by you) should look like.

You can post your workbook/worksheets to the following free site (sensitive data changed), mark the workbook for sharing, and, provide us with a link to your workbook:

https://dropbox.com
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top