LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Run-time error '1004' for looking up date in worksheet

Got the hint from Jim's code and it did the trick. Thanks Jim and Tom
both of you for looking into my problem.


Tom Ogilvy wrote:
For i = 1 To lRow
If Sheets("DB").Range("A" & rCount).Value = aEmpID.Value Then
aName.Value = Sheets("DB").Range("A" & lRow).Offset(0, 1).Value
End If
rCount = rCount + 1
Next i

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
Forgot to mention one thing.

DB is not the active sheet. It is hidden and for some reason I want it
to be hidden. My active sheet is BLANK with no data in it. I want to
finish this asap. Any urgent help would be appreciated.


 
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
Run-Time error '1004: Unable to get the PivotTables property of the worksheet class magarnagle Excel Programming 4 May 19th 06 11:20 AM
Run-time error 1004: Cannot shift nonblank cells off the worksheet [email protected] Excel Discussion (Misc queries) 1 April 10th 06 06:13 PM
run time error 1004 on protected worksheet when I try to run macro dtg_denver Excel Programming 13 August 13th 05 01:23 AM
Run Time Error 1004 Copy method of Worksheet class failed Paul Hitchcock Excel Programming 2 May 4th 05 08:10 PM
Run Time error 1004 Paste Method of Worksheet Class Failed Ken Nunn Excel Programming 3 June 29th 04 03:23 PM


All times are GMT +1. The time now is 12:59 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"