Thema Datum  Von Nutzer Rating
Antwort
Rot Empty lines inbetween
16.02.2016 10:05:23 Officer_Bierschnitt
NotSolved
16.02.2016 10:24:42 Officer_Bierschnitt
NotSolved
16.02.2016 12:07:56 Officer_Bierschnitt
Solved

Ansicht des Beitrags:
Von:
Officer_Bierschnitt
Datum:
16.02.2016 10:05:23
Views:
1097
Rating: Antwort:
  Ja
Thema:
Empty lines inbetween

Hi,

 

I have a macro running in one of our teams that opens each one of a series of files, created (populated) by different persons at different times during the day, but which all look alike in structure.

The problem I'm currently facing is this:

- I need a way of finding out the last filled row - so I can fill out certain formulas and define the range I have to copy into another file.

<=> There is a named table_area, so I cannot select the last cell at the bottom of the sheet and then jump up using xlUp

=> So what I do currently is, I go from line to line querying the length of the value using Len(ActiveCell.Value)

<=> This does sometimes cause malfunctions because some people have empty lines either at the very top of their list of entries or somewhere inbetween,

      in each case my macro will make that the last row, thus missing out on some rows.

I have already spoken to the supervisor in that area, but nobody can rule out that this is going to happen in future and I cannot have him open and check every file before running my macro, else he might as well do all the work himself ...

=> Is there a way I can deal with that? I will experiment a bit myself, but I'll be happy for every proposition, too.

 

Thanks a lot!

Best regards,

 

Officer_Bierschnitt


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
Rot Empty lines inbetween
16.02.2016 10:05:23 Officer_Bierschnitt
NotSolved
16.02.2016 10:24:42 Officer_Bierschnitt
NotSolved
16.02.2016 12:07:56 Officer_Bierschnitt
Solved