Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box wont change selection?

I have created a userform which i call on in the code below, when
select from the drop down it then enters the selection in th
activecell on all sheets and the selects the 1st sheet, my problem i
this.....if i choose the 1st or last sheet and select a cell there i
no problem and i can make an entry anywhere but if i choose 1 of th
others and select a cell as soon as the combo box pops up it select
the cell that was previously used in a selection on the first or las
sheet.....is there anyway around this?....all sheets contain Workshee
selection change code (which is the same on every sheet)....heres th
code!

Simon

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Dim sh As Object
Dim myrange As Range
Dim ComboBox1
Dim I1 As Integer
Dim res As Variant
Dim arySheets
On Error Resume Next

'If sh.Range = ("Hidden") Then
'Exit Sub
'End If

With arySheets
Set myrange = Range("E3:H641")
If Not Intersect(myrange, Target) Is Nothing Then
Sheets("Alpha Packing").Select
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
arySheets = Array("Alpha Packing", "Alpha Process", "Bulk
H&I", _
"Corn Process", "33 Bldg Packing", "Ctd Cor
Packing", _
"2 & 3 Coating", "Crispix", "Feed"
"Flavour", _
"Jet Zones", "Manpower Tasks", "MPD", "Plan
Awareness", _
"Rice Cooking", "Vehicle Drivers (plant)"
"VIP", _
"15-21 & 22", "4&5 Coating", "Tank Floor 15
33 Bldg")
Sheets(arySheets).Select
Sheets("Alpha Packing").Activate
End If
UserForm1.Show


If ActiveCell.Text = "Ref:E-mail" Then
MsgBox "send email to training"
'Shell ("cmd /k C:\notes\notes.exe")


'Range("A" & ActiveCell.Row).Select
End If
If Not IsError(res) Then


ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Alpha Packing").Select
Exit Sub
Worksheets("hidden").Visible = False

End If

I1 = MsgBox("Please try again " & vbCrLf & _
"Skill " & " Entry not recognised " & _
"Please Contact Training Dept to Add Skil
Title!!")
If ActiveCell < "shift " Then
Range("A" & ActiveCell.Row).Select
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Alpha Packing").Select
End If

End With
End Su

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box wont change selection?

Sorry all i forgot to add the userform code......so here it is!

Simon

Private Sub ComboBox1_Change()
On Error Resume Next
ActiveCell.Select
ActiveCell.Value = ComboBox1.Value

UserForm1.Hide
End Su

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box wont change selection?

I posted this a couple f days ago any ideas??

simo

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo box wont change selection?

Sorry about re-posting this but it is causing quite a headache a
information newly entered is being overwritten because its acting o
the same cell every time!

Simo

--
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
Combo box selection will not calculate Perrysbox2 Excel Worksheet Functions 1 June 11th 09 09:21 PM
Combo box selection will not calculate Perrysbox2 Excel Discussion (Misc queries) 0 June 11th 09 07:12 PM
Date format from excel to CVS file wont. Change in CVS wont stay. Fish''s Mermaid Excel Worksheet Functions 1 October 14th 06 12:28 AM
i change a source and the other cells wont change cody Excel Worksheet Functions 1 June 21st 05 04:36 PM
Color of selection in combo box Gary[_10_] Excel Programming 2 November 6th 03 01:01 AM


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