display top line of textbox in form as default?!?!?! :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

display top line of textbox in form as default?!?!?!
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

nodding dino
Board Regular


Joined: 05 Aug 2003
Posts: 16
Location: West London
Flag: Uk

Status: Offline

 Reply with quote  

display top line of textbox in form as default?!?!?!

I have a text box on a form with a large amount of text (a simple help file) does anyone know the property which will let me display the top line of the text when the form is opened? it seems to want to default to the last line of text whcih is really annoying! for info the text box has a vertical scrollbar...

THANKS!

Post Fri Sep 19, 2003 1:27 pm 
 View user's profile Send private message

Juan Pablo González
MrExcel MVP


Joined: 09 Feb 2002
Posts: 8580
Location: Marion, IL
Flag: Colombia

Status: Offline

 Reply with quote  

Re: display top line of textbox in form as default?!?!?!

Take a look at the SelStart property of the TextBox.
_________________
Regards,

Juan Pablo González
MrExcel.com Consulting

Read the Articles List and check out our Recommended links and Add-Ins

Post Fri Sep 19, 2003 1:30 pm 
 View user's profile Send private message Visit poster's website

nodding dino
Board Regular


Joined: 05 Aug 2003
Posts: 16
Location: West London
Flag: Uk

Status: Offline

 Reply with quote  

i don't seem to be able to find that property...?!?!?

Post Fri Sep 19, 2003 1:36 pm 
 View user's profile Send private message

Juan Pablo González
MrExcel MVP


Joined: 09 Feb 2002
Posts: 8580
Location: Marion, IL
Flag: Colombia

Status: Offline

 Reply with quote  

Re: display top line of textbox in form as default?!?!?!

You can access it by code:

code:
Private Sub UserForm_Initialize()
    TextBox1.SelStart = 0
End Sub



_________________
Regards,

Juan Pablo González
MrExcel.com Consulting

Read the Articles List and check out our Recommended links and Add-Ins

Post Fri Sep 19, 2003 1:42 pm 
 View user's profile Send private message Visit poster's website

nodding dino
Board Regular


Joined: 05 Aug 2003
Posts: 16
Location: West London
Flag: Uk

Status: Offline

 Reply with quote  

nice one!

Post Fri Sep 19, 2003 1:43 pm 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.