Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel validation problem

Hi! All;

I am using Excel to do a validation program. This program consisted by several worksheets and these worksheets will shared some data from a source worksheet. For example some worksheet has contains item is and item description column and all this data actually extract from source worksheet, so when click the item id from validation list and the corresponding item description will shown on the column. I created a code and try it on Excel 2000 & above, it works properly. However when I try to same code on Excel 97, the function doesnt work due to when click the selection from the list, the item description didnt show any thing. So any one know what the problem.

This is my source code.

Dim count, RowNumber, ColumnNumber As Variant

count = 2

RowNumber = Selection.Row
ColumnNumber = Selection.Column

Do While Sheet10.Cells(count, 1).Value < ""
If Sheet10.Cells(count, 2).Value = Cells(RowNumber, 3).Value Then
Sheet10.Range("a" & count).Copy
Range("d" & RowNumber).PasteSpecial Paste:=xlValues
Application.CutCopyMode = False
Exit Sub
End If
count = count + 1
Loop

Regards

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel validation problem

Using Excel 97 I get an debug error on all references to sheet10

Sheet10 has not been setto relate to any worksheet

try
dim Sheet10 as worksheet

set sheet10 = sheets("sheet10")

or

set sheet10 = workbooks("name").sheets("sheet10")


or

change sheet10.
to
sheets("sheet10")

--
Message posted from http://www.ExcelForum.com

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
Problem with length of validation list in Excel 2002 Vladimir Excel Worksheet Functions 4 December 15th 06 04:33 AM
Tricky problem in Data validation - Excel 2003 smadhuranath Excel Discussion (Misc queries) 1 July 18th 06 09:10 AM
Excel VBA programmatic validation problem ZoomZoom Excel Programming 10 June 3rd 04 05:21 PM
Excel Validation / Dropdown list Problem edsulya Excel Programming 5 February 5th 04 09:06 PM
Excel Validation Problem in VB6 Yuri Weinstein Excel Programming 0 January 22nd 04 08:49 PM


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