Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default validate data based on data within another spreadsheet

HI

I am trying to develop a macro for data entry and need the macro to
validate that it is posting data to the correct cell. I have done this
by creating a loop which checks to see if the category cell currently
selected in the document data is pasted too equals the category cell in
the document data is copied from.

This is the code I have come up with:

Do Until ActiveCell = "
ActiveCell.Offset(1, 0).Select

If ActiveCell = "end" Then Exit Do

Ideally I would like to avoid having to type in the phrase
" and just have the macro check that the cell it is copying
from equals the cell it is pasting too (the titles not the actual
data). This is something I attempted to give you an idea:


Do Until ActiveCell = ([Budget.xls]Annual!C10)

ActiveCell.Offset(1, 0).Select

If ActiveCell = "end" Then Exit Do

Obviously this does not work but it gives you the idea of what I am
trying to do.

Any help is greatly appreciated,

Thank You

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
Extract data on one spreadsheet to another based on criteria AndyJ New Users to Excel 5 January 4th 08 12:43 AM
showing data in a different way based on a spreadsheet excel 07 newyorkjoy Excel Discussion (Misc queries) 16 May 21st 07 08:18 PM
reporting based on spreadsheet data Alex Excel Programming 6 August 10th 05 11:43 PM
Validate data in userform data entry BernzG Excel Programming 4 June 1st 05 01:45 PM
How do I validate data using different lists based on the data in. Shannon Excel Discussion (Misc queries) 1 March 28th 05 05:55 PM


All times are GMT +1. The time now is 06:51 AM.

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"