Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Molly Brown   on Oct 02 In MS Office Category.

  
Question Answered By: Bu Nguyen   on Oct 02

Revise your code to this.

Option Explicit
Sub main()
Public rIndex As Integer
For rIndex = 1 To 17
If Worksheets("Sheet2").Cells(rIndex, 1).Value = "EE16" Then
MsgBox Worksheets("Sheet2").Cells(7, 2) &
Worksheets("Sheet2").Cells(7, 3)
End If
Next rlndex
End Sub

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on excel vba Or get search suggestion and latest updates.


Tagged: