Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Invalid Property Value Error

Have a form in an Excel file. Have a Control on the form
("ControlX"), default value of which is "". When entering
ControlX, check is performed to ensure a prior control
contains an appropriate value. When exiting ControlX
(i.e., upon AfterUpdate), ControlX value is saved to a
global variable for later use. All this works fine during
the normal sequence of events.

However, if the user returns to ControlX and deletes the
value (as in "Oops, I made a mistake"), and then tries to
go to another control, he gets a "Invalid Property Value"
error message generated by Microsoft Forms (or so I infer
from the Blue Bar on the error message popup).

I've tried a couple of different error-trapping structures
to deal with the fact that something out there in the
background obviously doesn't like a null value in
ControlX, including one that set the value back to ""
instead of Null, but so far no luck, still get the
message. Anyone have any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Invalid Property Value Error

It would be VERY helpful if you indicated what type of control
you are using.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"LarryP" wrote in message
...
Have a form in an Excel file. Have a Control on the form
("ControlX"), default value of which is "". When entering
ControlX, check is performed to ensure a prior control
contains an appropriate value. When exiting ControlX
(i.e., upon AfterUpdate), ControlX value is saved to a
global variable for later use. All this works fine during
the normal sequence of events.

However, if the user returns to ControlX and deletes the
value (as in "Oops, I made a mistake"), and then tries to
go to another control, he gets a "Invalid Property Value"
error message generated by Microsoft Forms (or so I infer
from the Blue Bar on the error message popup).

I've tried a couple of different error-trapping structures
to deal with the fact that something out there in the
background obviously doesn't like a null value in
ControlX, including one that set the value back to ""
instead of Null, but so far no luck, still get the
message. Anyone have any suggestions?



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Invalid Property Value Error

Oh, sorry -- it's a limited-to-list Combo box, populated
with various items from a named range on one of the
worksheets. Based on the value in the previous (in tab
sequence) control, OnEnter proposes the appropriate value
to be selected in ControlX, but the user can select a
different one as long as it's in the list. All that works
dandy, but if the user completely deletes the value in
ControlX and then tries to go anywhere else, he gets the
error I described.


-----Original Message-----
It would be VERY helpful if you indicated what type of

control
you are using.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"LarryP" wrote in

message
...
Have a form in an Excel file. Have a Control on the

form
("ControlX"), default value of which is "". When

entering
ControlX, check is performed to ensure a prior control
contains an appropriate value. When exiting ControlX
(i.e., upon AfterUpdate), ControlX value is saved to a
global variable for later use. All this works fine

during
the normal sequence of events.

However, if the user returns to ControlX and deletes the
value (as in "Oops, I made a mistake"), and then tries

to
go to another control, he gets a "Invalid Property

Value"
error message generated by Microsoft Forms (or so I

infer
from the Blue Bar on the error message popup).

I've tried a couple of different error-trapping

structures
to deal with the fact that something out there in the
background obviously doesn't like a null value in
ControlX, including one that set the value back to ""
instead of Null, but so far no luck, still get the
message. Anyone have any suggestions?



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Invalid Property Value Error

Is "" one of the valid choices in the list? If not, try adding it (at the
bottom if you don't want it as a distraction).

--
Regards,
Tom Ogilvy


wrote in message
...
Oh, sorry -- it's a limited-to-list Combo box, populated
with various items from a named range on one of the
worksheets. Based on the value in the previous (in tab
sequence) control, OnEnter proposes the appropriate value
to be selected in ControlX, but the user can select a
different one as long as it's in the list. All that works
dandy, but if the user completely deletes the value in
ControlX and then tries to go anywhere else, he gets the
error I described.


-----Original Message-----
It would be VERY helpful if you indicated what type of

control
you are using.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"LarryP" wrote in

message
...
Have a form in an Excel file. Have a Control on the

form
("ControlX"), default value of which is "". When

entering
ControlX, check is performed to ensure a prior control
contains an appropriate value. When exiting ControlX
(i.e., upon AfterUpdate), ControlX value is saved to a
global variable for later use. All this works fine

during
the normal sequence of events.

However, if the user returns to ControlX and deletes the
value (as in "Oops, I made a mistake"), and then tries

to
go to another control, he gets a "Invalid Property

Value"
error message generated by Microsoft Forms (or so I

infer
from the Blue Bar on the error message popup).

I've tried a couple of different error-trapping

structures
to deal with the fact that something out there in the
background obviously doesn't like a null value in
ControlX, including one that set the value back to ""
instead of Null, but so far no luck, still get the
message. Anyone have any suggestions?



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Invalid Property Value Error

Hmmm, fiendishly clever. I'll try it and see if it fixes
the problem.
-----Original Message-----
Is "" one of the valid choices in the list? If not, try

adding it (at the
bottom if you don't want it as a distraction).

--
Regards,
Tom Ogilvy


wrote in message
...
Oh, sorry -- it's a limited-to-list Combo box, populated
with various items from a named range on one of the
worksheets. Based on the value in the previous (in tab
sequence) control, OnEnter proposes the appropriate

value
to be selected in ControlX, but the user can select a
different one as long as it's in the list. All that

works
dandy, but if the user completely deletes the value in
ControlX and then tries to go anywhere else, he gets the
error I described.


-----Original Message-----
It would be VERY helpful if you indicated what type of

control
you are using.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"LarryP" wrote in

message
...
Have a form in an Excel file. Have a Control on the

form
("ControlX"), default value of which is "". When

entering
ControlX, check is performed to ensure a prior

control
contains an appropriate value. When exiting ControlX
(i.e., upon AfterUpdate), ControlX value is saved to

a
global variable for later use. All this works fine

during
the normal sequence of events.

However, if the user returns to ControlX and deletes

the
value (as in "Oops, I made a mistake"), and then

tries
to
go to another control, he gets a "Invalid Property

Value"
error message generated by Microsoft Forms (or so I

infer
from the Blue Bar on the error message popup).

I've tried a couple of different error-trapping

structures
to deal with the fact that something out there in the
background obviously doesn't like a null value in
ControlX, including one that set the value back to ""
instead of Null, but so far no luck, still get the
message. Anyone have any suggestions?


.



.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Invalid Property Value Error

Nope, no joy. Tried adding "" to the valid entries list,
and also rewrote the initial form setup so that this
control is set to null rather than "". Same error message
in both cases.


-----Original Message-----
Is "" one of the valid choices in the list? If not, try

adding it (at the
bottom if you don't want it as a distraction).

--
Regards,
Tom Ogilvy


wrote in message
...
Oh, sorry -- it's a limited-to-list Combo box, populated
with various items from a named range on one of the
worksheets. Based on the value in the previous (in tab
sequence) control, OnEnter proposes the appropriate

value
to be selected in ControlX, but the user can select a
different one as long as it's in the list. All that

works
dandy, but if the user completely deletes the value in
ControlX and then tries to go anywhere else, he gets the
error I described.


-----Original Message-----
It would be VERY helpful if you indicated what type of

control
you are using.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"LarryP" wrote in

message
...
Have a form in an Excel file. Have a Control on the

form
("ControlX"), default value of which is "". When

entering
ControlX, check is performed to ensure a prior

control
contains an appropriate value. When exiting ControlX
(i.e., upon AfterUpdate), ControlX value is saved to

a
global variable for later use. All this works fine

during
the normal sequence of events.

However, if the user returns to ControlX and deletes

the
value (as in "Oops, I made a mistake"), and then

tries
to
go to another control, he gets a "Invalid Property

Value"
error message generated by Microsoft Forms (or so I

infer
from the Blue Bar on the error message popup).

I've tried a couple of different error-trapping

structures
to deal with the fact that something out there in the
background obviously doesn't like a null value in
ControlX, including one that set the value back to ""
instead of Null, but so far no luck, still get the
message. Anyone have any suggestions?


.



.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Invalid Property Value Error

Gee, is replying to yourself like talking to yourself?

Just wanted to let the world know that after two weeks I still haven't figured this out. Tried various things people suggested, but still get the "Invalid Property Value" error in the scenario I originally described. Hoping somebody will have some additional ideas. Unfortunately this error seems to be coming from Windows Forms rather than Excel, and there's no error number or other clue associated with it to give me a way of researching it further.

"LarryP" wrote:

Have a form in an Excel file. Have a Control on the form
("ControlX"), default value of which is "". When entering
ControlX, check is performed to ensure a prior control
contains an appropriate value. When exiting ControlX
(i.e., upon AfterUpdate), ControlX value is saved to a
global variable for later use. All this works fine during
the normal sequence of events.

However, if the user returns to ControlX and deletes the
value (as in "Oops, I made a mistake"), and then tries to
go to another control, he gets a "Invalid Property Value"
error message generated by Microsoft Forms (or so I infer
from the Blue Bar on the error message popup).

I've tried a couple of different error-trapping structures
to deal with the fact that something out there in the
background obviously doesn't like a null value in
ControlX, including one that set the value back to ""
instead of Null, but so far no luck, still get the
message. Anyone have any suggestions?

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
Compile Error: Wrong arguments or Invalid property Brent E Excel Discussion (Misc queries) 3 May 1st 07 07:11 PM
Runtime Error 381 Couldn't set list property, invalid array index Newbillian Excel Programming 2 June 17th 04 11:25 AM
Runtime Error 381 Couldn't set list property, invalid array index Newbillian Excel Programming 0 June 16th 04 11:28 PM
Invalid picture Error?!? Tom Excel Programming 1 May 4th 04 10:36 AM
invalid picture error Liam[_2_] Excel Programming 0 October 15th 03 07:18 PM


All times are GMT +1. The time now is 09:41 AM.

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"