vba courses london - how do i do
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - How do I do loops?

vba courses london - How do I do loops?

resolvedResolved · Low Priority · Version Standard

replyReply Thu 18 Jan 2007, 16:03Delegate Oliver said...

Oliver has attended:
Excel VBA Intro Intermediate course

How do I do loops?

Hey Garry,

How do I do loops in my speadsheet?

For upcoming training course dates see: Pricing & availability

replyReply Thu 25 Jan 2007, 13:06Trainer Garry said...

RE: How do I do loops?

try this
Sub Example2()
For x = 1 To 5
if activecell > 10 then
Selection.font.colorindex=3
end if
activecell.offset(1,0).select
Next x
End Sub
try this

 

Vba tip:

Use VbNullString instead of

When needing to default a String variable back to it's default of "" use vbNullString as in the following example:

Sub ClearText()

Dim strEmpName As String

strEmpName = "John Smith"
MsgBox strEmpName

strEmpName = vbNullString
MsgBox strEmpName

End Sub

View all VBA hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard