Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Why do I get VLookup error 1004

After defining a new Name ("_year") in my worksheet, I find that my makro
code (Private Sub cmdNewEntry744_Click()
With NewEntries
..Show
End With
End Sub)
can no longer open my dialog box. I get a runtime error 1004 a message
refering to VLookup property of Workbook function class.
The name "_year" refers to "=If(month="JAN.";R[-1]C + 1; R[-1]C)".

WhatIdo??

KenG
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 905
Default Why do I get VLookup error 1004

"KenG" wrote:
After defining a new Name ("_year") in my worksheet,

[....]
I get a runtime error 1004 a message refering to VLookup
property of Workbook function class.
The name "_year" refers to "=If(month="JAN.";R[-1]C + 1; R[-1]C)".


I presume you mean WorksheetFunction.VLookup.

It is unclear exactly how you are trying to refer to the Excel defined name.
You should show us a code snippet.

But in any case, I can imagine that WorksheetFunction.VLookup cannot
reference an Excel defined name.

I would use the Evaluate function. I cannot be more specific because you
were not more specific.


----- original message -----

"KenG" wrote in message
...
After defining a new Name ("_year") in my worksheet, I find that my makro
code (Private Sub cmdNewEntry744_Click()
With NewEntries
.Show
End With
End Sub)
can no longer open my dialog box. I get a runtime error 1004 a message
refering to VLookup property of Workbook function class.
The name "_year" refers to "=If(month="JAN.";R[-1]C + 1; R[-1]C)".

WhatIdo??

KenG


Reply
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
Error 1004 tpeter Excel Discussion (Misc queries) 6 November 11th 09 09:06 PM
Ghost in the Machine - 1004 Vlookup & On Error Duo Trouble VBANovice Excel Worksheet Functions 2 May 22nd 09 06:07 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
Runtime error '1004' General ODBC error star_lucas New Users to Excel 0 August 29th 05 04:09 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


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

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

About Us

"It's about Microsoft Excel"