[mso] FW: Re: Another Excel VBA Question

Just to note my concerns about wrapping seem to have been confirmed, try:

Sub FillWithFormula()
  Dim strLookupCell As String
  Dim strLookupRange As String
  strLookupCell = _
    InputBox("Enter lookup value cell (including $ if needed)")
  strLookupRange = _
    InputBox("Now enter lookup range of values")
  ActiveCell.Formula = "=IF(ISERROR(ERROR.TYPE(VLOOKUP(" _
    & strLookupCell & "," & strLookupRange & ",4,FALSE))),VLOOKUP(" _
    & strLookupCell & "," & strLookupRange & ",4,FALSE),
IF(ERROR.TYPE(VLOOKUP(" _
    & strLookupCell & "," & strLookupRange & ",4,FALSE))=7, 0, "" ""))" 
End Sub

Best regards, John


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: