defining variables
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and Help » Defining variables

Defining variables

The UK's most regular instructor-led training courses.
Training information: excel training course · Excel training courses · VBA training in London

resolvedResolved · Low Priority · Version 2003

Defining variables

Hannah has attended:
Excel VBA course

by - delegate Hannah [1 post] (2008 Apr 29 Tue, 12:25) replyReply

what is a string.

Excel VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 8 Mon + 9 Tue Bayswater 2 book now £495 £495
2003 2008 Sep 18 Thu + 19 Fri Bloomsbury 3 book now £475 £495
2003 2008 Sep 25 Thu + 26 Fri Southwark 5 book now £450 £485
2003 2008 Oct 6 Mon + 7 Tue Bayswater 5 book now £450 £485
2007 2008 Oct 13 Mon + 14 Tue Bayswater 7 book now £345 £399
2003 2008 Oct 23 Thu + 24 Fri Southwark 5 book now £450 £485
Full Schedule: See all 44 Excel VBA course dates.
Bookings currently available until 26th November 2009.

RE: defining variables

by - trainer Carlos gold contributer[394 posts] (2008 Apr 29 Tue, 14:12) replyReply

Hi Hannah

When declaring varalbles one variable type is a String.

A string is a character or a combination of characters that constitute text of any kind and almost any length.

So to declare a string variable you write the following:

Dim UserName As String

Text-based controls such as the TextBox, the ListBox, or the ComboBox controls, have a property called Text. This property is of type String.

So when using such a control, to access the string that it holds you call its Text property. So if you have a text box with the user name you would code

UserName = txtUserName.Text

Hope this helps

Carlos


Related articles

· Features of Microsoft Excel that assist in Analysis of Financial Data
· Microsoft Excel's Best Kept Secret
· Microsoft Excel Training: Not Just for Newbies Anymore
· Tips to Facilitate Printing of Excel worksheets
· Compare Different MS Excel Training Methods

Please browse our web site to find out more about
excel training course and other Microsoft training courses.

Excel tip:

Get to the end of the used range

What’s the quickest way to get to the bottom right of the used range in your spreadsheet? The two-handed method is Ctrl+End (hold down Ctrl and press End). The one-handed method is End Home (press and release End, and then press and release Home).

The last cell so selected may appear to be empty. However, there is a cell in that row that has an entry or a format and there is a cell in that column that has an entry or format.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz