Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Bound column does not work after hiding form

I have some comboboxes that are filled from an arra
When I select an item from the drop down list the value of the bound column appears in a textbo

I then hide the form to allow the user to do some work on a spreadshee
I then display it again with the UserForm.Show comman

Problem
Although all information in the comoboxes is retained - the bound column no longer work
It appears that the cursor has moved one space to the right and the string is no longer recognized as being in the dropdown list
If I edit the value manually and backspace once - the bound column works

Any ideas how fix this

TerryK
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Bound column does not work after hiding form

TerryK wrote:
It appears that the cursor has moved one space to the right and the string is no longer recognized as being in the dropdown list.


Sounds like someone has used SendKeys " " ???
What happens if you move the focus from the combobox before hiding the form?

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Bound column does not work after hiding form

Bill,
There is no SendKeys code in the project. Is this something that Excel would do behind the scenes? If so is there a method to disable it?

TerryK
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Bound column does not work after hiding form

Bill,
I forgot to respond to your question
"What happens if you move the focus from the combobox before hiding the form?"

This does not appear to be the issue. There are about 12 comboboxes on the form and they are all affected in the same manner. So which control has the focus does not seem to come into play.

TerryK


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Bound column does not work after hiding form

TerryK wrote:
There is no SendKeys code in the project. Is this something that Excel would do behind the scenes?


No.
Sorry. Out of ideas.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Bound column does not work after hiding form

Bill,
Thanks for your input. Your thoughts gave me a new command and a solution.
This is crude but it works.

FormInput.ComboBoxVersaLam1.Text = Range("d16")
FormInput.ComboBoxVersaLam1.SetFocus
SendKeys "{bs}"

TerryK
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
User form and hiding spreadsheet Chip Smith Excel Discussion (Misc queries) 0 March 29th 06 07:46 PM
What does "Workbook has no bound sheets" mean? robinsgate Excel Discussion (Misc queries) 1 January 12th 06 06:20 AM
Form not hiding LB79 Excel Discussion (Misc queries) 6 August 24th 05 02:34 PM
What does "Workbook has no bound sheets" mean? robinsgate Excel Discussion (Misc queries) 1 March 15th 05 11:02 PM
Hiding and Unhiding work sheets Frank[_19_] Excel Programming 3 November 19th 03 11:27 PM


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