LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default get last line number

I am using the following:
-----------------------------------------
Sheets("MESSER").Visible = True
Sheets("MESSER").Select
ActiveSheet.Unprotect

Range("ú_æ").Select
ActiveCell.Offset(1, 0).Range("A1").Select

Selection.End(xlDown).Select


Dim Message, Title, Default, MyValue

Message = "ä÷ìã îñôø ùåøä Ã*çøåðä" ' Set prompt.
Title = "" ' Set title.
Default = "F14:K???" ' Set default.

' Display message, title, and default value.
MyValue = InputBox(Message, Title, Default)

Range(MyValue).Select

Selection.Sort Key1:=ActiveCell, Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortTextAsNumbers
Range("ú_æ").Select
ActiveCell.Offset(1, 0).Range("A1").Select

ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True

Sheets("MESSER").Visible = False

Sheets("START").Select
--------------------------------------------
Can the K??? last line number in column K be automatically detected by macro
without using the DIM statement and user interface....???
thanks
Helmut
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get a line under my number that is just 1 char more? megan Excel Discussion (Misc queries) 2 September 22nd 08 06:20 PM
vba code line number kdp145[_6_] Excel Programming 3 July 7th 06 03:11 PM
Help!!! Extracting a number to line up with a different number lpdc Excel Discussion (Misc queries) 4 June 13th 06 08:40 PM
number line Tasha Excel Discussion (Misc queries) 0 February 13th 06 04:47 PM
code line number Masoud Excel Programming 3 January 31st 05 07:50 PM


All times are GMT +1. The time now is 12:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"