Copying Data into Cells using a Reference

Closed
mbarlee - Nov 3, 2008 at 09:51 PM
 mbarlee - Nov 9, 2008 at 05:15 PM
Hello,

I am currently having trouble arranging data that is exported from SAP. The report gives data like this,

CC CCD P PD L LD B A ASN AD
# # # # # # ---Empty----
--------Empty------- @ @ @ @
--------Empty------- @ @ @ @
--------Empty------- @ @ @ @
--------Empty------- @ @ @ @
------Empty Row -------------------
Certification--------------------------
Bla Bla Bla----------------------------
------Empty Row -------------------
-Empty Cell-Bla Bla-----------------
Bla--------------------------------------
Bla--------------------------------------
# # # # # # ---Empty----
--------Empty------- @ @ @ @
--------Empty------- @ @ @ @
--------Empty------- @ @ @ @
--------Empty------- @ @ @ @
--------Empty------- @ @ @ @
--------Empty------- @ @ @ @
Certification--------------------------
Bla Bla Bla----------------------------
------Empty Row -------------------
-Empty Cell-Bla Bla-----------------
Bla--------------------------------------
Bla--------------------------------------

This continues until the end of the report. The amount of "--------Empty------- @ @ @ @"'s change

What I would like to do is remove the Certification and the rows below it until the next line of #'s. Also I would like to replace the Empty Cells before the @'s with the information in the #'s.

I have used the following formula to find the certification cells and remove the next few lines and the empty row above it and obviously it errors when none are found.

Cells.Find("Certification").Activate
ActiveCell.Offset(-1, 0).Range("A1:A8").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Delete Shift:=xlUp

I imagine that certification will have to used as a reference point and have tried other formulas but none have worked.

Any guidance or suggestions would be great.

Cheers

2 responses

diginum Posts 9 Registration date Tuesday October 21, 2008 Status Member Last seen April 22, 2009
Nov 4, 2008 at 07:26 AM
hey there,

here is a link where you will get what you are in search of :

http://office.microsoft.com/en-us/excel/results.aspx?qu=copying+data+into+cells&sc=9&av=O10100
0
This is not what im looking for. I need to reference "Certification" activate the next cell with data above it, select the next five columns and fill down to the line before certification. Then remove the certification row and the 7 below it. Then have the macro do the same thing for every other instance of "Certification.

Sorry If I did not explain myself thoroughly
0
Bump
0