AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Excel:locate the last used cell

Ein Thema von nono74 · begonnen am 30. Mär 2013
Antwort Antwort
nono74

Registriert seit: 30. Dez 2012
3 Beiträge
 
#1

Excel:locate the last used cell

  Alt 30. Mär 2013, 16:33
hello,

I am developing an application that modifies an Excel file.

To position itself on the last line used the excel sheet, I use this code:
Delphi-Quellcode:
var
ExcelApp : Variant;
Sheet :OLEVariant;
begin
ExcelApp := CreateOleObject('Excel.Application');
 
ExcelApp.Workbooks.Open('c:\MY FILE.xls');
 
Sheet := ExcelApp.Workbooks['c:\MY FILE.xls')].WorkSheets[1];
 
Sheet.Cells.SpecialCells(xlCellTypeLastCell, EmptyParam).Activate;
How to locate the last used cell on any row?

example : last cell Row Number => 5

thanks

Geändert von nono74 (30. Mär 2013 um 16:50 Uhr)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:49 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz