LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default Variable Issue

I have a variable assigned to Variant type and I have this statement before
The variable is assigned:
On Error Goto XXXX
THe variable gets its value as follows:
Res = Application.VLookup(Cells(X, 1) & Cells(X, 41), LookupRng, 3,
False)
The result is error 42, but the application does not goto XXXX but instead I
get an error 42, runtime error 13, type mismatch. I am not sure what to do I
can't seem to get the program to just skip over the assignment. Suggestions?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple variable issue FadaSininho Excel Discussion (Misc queries) 1 August 17th 06 03:31 PM
subroutine variable decleration issue Christmas May[_2_] Excel Programming 1 June 30th 06 11:03 PM
Object variable issue Tom Excel Programming 2 January 7th 06 02:07 PM
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM
OutlineLevel and Integer Variable issue jurgenC![_2_] Excel Programming 2 January 30th 04 10:32 PM


All times are GMT +1. The time now is 01:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"