Excel VBA. Copy and paste from one cell to another based on value.

fellodan

New Member
Joined
Mar 6, 2019
Messages
1
Hi All.

Fairly new to the world of VBA. i'll give a brief description first and then add more detail.

I'm basically wanting to search down a column for specific words, each time I hit one of these words I want to jump into the previous column and cut the value from there and paste it as a value to the first available blank cell in a set range.

so here is what i've got in terms of spreadsheet:

ABCDEFGHIJ
Process smallP.Woods Not in
largeM.Twaitshol
mediumG.Rothery
5 StickN.Barhamsick
jmbC.Higgins
freshD.Opolski

<colgroup><col span="10"></colgroup><tbody>
</tbody>

so I want to look down column E, when I either see sick or hol I want to copy or cut the name at the side and then paste it to the first available blank in column H as a value.

Any help would be much appreciated.

Regards
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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