Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am new to writing VBA code in Excel:
I have a simple spreadsheet with 2 columns. The first column has an animal ID, the second has the animal data. The first column has 1 cell filled in for a set of 2-6 cells in the second column, therefore below the filled in cell are blank cells until the next animal ID. I would like to create a simple macro that will search the first column (A), when it finds a cell that is blank I would like it to copy the cell above it and paste it into that cell. If the cell is not blank then leave it as is. This is all on the first sheet of my workbook (Sheet1). If someone could help me write the code for this that would be great, I'm assuming it should be that hard. Thanks! -- Thorson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy cell contents, then paste into the same cell with other text. | Excel Discussion (Misc queries) | |||
How do I copy the contents of a range of text cells and paste into one cell? | Excel Discussion (Misc queries) | |||
copy paste delete cell contents | Excel Discussion (Misc queries) | |||
Cut and paste or Copy just cell contents? | Excel Discussion (Misc queries) | |||
Copy/paste based on adjacent cell contents | Excel Programming |