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

I am trying to create a valadation list with a range of values fro
another worksheet, however keep getting an error
"Run time ERROR '1004
Application -defined or ojbect defined error."

Following is my code:

With Range("I8").Validation
.Modify xlValidateList, xlValidAlertStop, xlBetween
"=DataSheet.Range($A$1:$A$15)"
.InCellDropdown = True
End With

Appreciate any help with this

Cheers
Ric

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA Valadation xlBetween ERROR

DataSheet.Range($A$1:$A$15).Name = vList1
With Range("I8").Validation
Modify xlValidateList, xlValidAlertStop, xlBetween,
"=vList1"
InCellDropdown = True
End With

--
Regards,
Tom Ogilvy

"Richmont " wrote in message
...
I am trying to create a valadation list with a range of values from
another worksheet, however keep getting an error
"Run time ERROR '1004
Application -defined or ojbect defined error."

Following is my code:

With Range("I8").Validation
Modify xlValidateList, xlValidAlertStop, xlBetween,
"=DataSheet.Range($A$1:$A$15)"
InCellDropdown = True
End With

Appreciate any help with this

Cheers
Rich


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Valadation xlBetween ERROR

Tom

Still having problems with this line
VBA gives a compile error - it dosn't recognise the symbol "$".

DataSheet.Range($A$1:$A$15).Name = vList1

Cheers
Richar

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA Valadation xlBetween ERROR

DataSheet.Range("A1:A15").Name = vList1

No, it is looking for a string and you omitted the quotes. It would still
work with

DataSheet.Range("$A$1:$A$15").Name = vList1

assume DataSheet resolves to a valid worksheet reference.

--
Regards,
Tom Ogilvy


"Richmont " wrote in message
...
Tom

Still having problems with this line
VBA gives a compile error - it dosn't recognise the symbol "$".

DataSheet.Range($A$1:$A$15).Name = vList1

Cheers
Richard


---
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
Data Valadation klafert Excel Worksheet Functions 2 February 1st 09 09:09 PM
Data Valadation Jeff Excel Worksheet Functions 4 December 15th 08 07:32 PM
valadation list Chris New Users to Excel 2 July 11th 07 07:24 PM
Data Valadation claude jerry Excel Discussion (Misc queries) 5 April 14th 07 04:04 PM
Data Valadation - KimberlyC Excel Worksheet Functions 1 June 2nd 05 09:29 PM


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