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


Hello. Im having trouble with this macro,


Selection.Insert Shift:=xlDown
Selection.Offset(-1, 0).Range("A1").Select
Selection.Copy
Selection.Offset(1, 0).Range("A1").Select
ActiveSheet.Paste

The cell that it copys the data from is validated as a whole number
between 0 and the contents of cell H47. When it pastes this data in
the cell below instead of being validated as a whole number between 0
and the contents of cell H48 its being validated as a whole number
between 0 and the contents of cell H49.

Any ideas?
Thanks


--
loiboi
------------------------------------------------------------------------
loiboi's Profile: http://www.excelforum.com/member.php...o&userid=25621
View this thread: http://www.excelforum.com/showthread...hreadid=390361

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Validation Problems


In your validation rule, change

=H47

to

=$H$47

The '$' tells it to lock to that row or column (so H$47 would allow it
to change to I47 if you copied into a cell to the right)


--
TommySzalapski
------------------------------------------------------------------------
TommySzalapski's Profile: http://www.excelforum.com/member.php...o&userid=25561
View this thread: http://www.excelforum.com/showthread...hreadid=390361

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Validation Problems


Thanks for that but i didnt mean that. What i mean is when i copy the
content of the cell to the next cell down i want the value in the
validate bit to change like this:
=H47
=H48
but instead its doing this
=H47
=H49


--
loiboi
------------------------------------------------------------------------
loiboi's Profile: http://www.excelforum.com/member.php...o&userid=25621
View this thread: http://www.excelforum.com/showthread...hreadid=390361

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Validation Problems


Ah solved it. :)
Thanks for the help! ;

--
loibo
-----------------------------------------------------------------------
loiboi's Profile: http://www.excelforum.com/member.php...fo&userid=2562
View this thread: http://www.excelforum.com/showthread.php?threadid=39036

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
Data Validation Problems with Charts denise11559900 Excel Discussion (Misc queries) 1 September 9th 09 07:41 AM
validation problems... [email protected] Excel Discussion (Misc queries) 0 November 19th 07 10:04 PM
Validation and If Function Problems mmd206 Excel Worksheet Functions 1 August 2nd 07 04:40 PM
Data validation problems changetires Excel Worksheet Functions 0 August 16th 06 02:30 AM
Validation Problems JDG Excel Worksheet Functions 0 August 25th 05 01:28 PM


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