Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using Access I export/create a daily Excel spreadsheet which has an increasing number of records/rows.

I'd like to then open a master Excel sheet, which:

  1. Opens the exported sheet.

  2. Counts the number of rows in the exported sheet which have data, then

  3. Copies a particular row in the master sheet, down the same number of rows that there are records in the exported sheet, plus 1.

I used to do this in Lotus, but Windows 7 won't work with 1-2-3, and the macros won't convert.

share|improve this question

1 Answer 1

Use VBA.

First, open the other workbook.

Second, get the count like this:

ExportRows = Workbooks("Other").Sheets("Export").UsedRange.Rows.Count

Third, copy the row

Sheets("Sheet1").Rows(ExportRows+1).Copy

Then you can paste it where you want.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.