Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I cannot figure out what I'm doing wrong. I get a "type mismatch" error on the vlookup line. Sub AutoComment() Dim abvar As String Dim mycell As Range For Each mycell In Range("B4:H27") abvar = Application.VLookup(mycell.Value, "SkillLegend!A:B", 2, False) mycell.AddComment Text:=abvar Next mycell End Sub Thank you... -- AllenWatts ------------------------------------------------------------------------ AllenWatts's Profile: http://www.excelforum.com/member.php...o&userid=34301 View this thread: http://www.excelforum.com/showthread...hreadid=541045 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLOOKUP Macro? | Excel Worksheet Functions | |||
vlookup macro | New Users to Excel | |||
VLOOKUP in a macro?? | Excel Programming | |||
VLOOKUP in a Macro | Excel Programming | |||
Need a macro to do what this VLOOKUP does | Excel Programming |