Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Drop down arrow disappear

I have a drop down list in my data validation, but everytime I run my
code, the drop down button will disappear, to get it back I have to
close my excel (not just the current worksheet) and re-run it again.
Which code is taking control of this button ? Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 253
Default Drop down arrow disappear

Hi,

Without your code, hard to say. Add a copy to your posting.
Regards

Jean-Yves

"broogle" wrote in message
ups.com...
I have a drop down list in my data validation, but everytime I run my
code, the drop down button will disappear, to get it back I have to
close my excel (not just the current worksheet) and re-run it again.
Which code is taking control of this button ? Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Drop down arrow disappear

Ok, here is my code. Thanks.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)

On Error GoTo errHandler:

Range("c9").Activate

filesavename = Application.GetSaveAsFilename(Sheet1.Range("C10") &
Sheet1.Range("C7"), _
fileFilter:="Microsoft Excel Workbook (*.xls), *.xls")

If filesavename < False Then

Application.DisplayAlerts = False
Dim resp As Long
resp = vbYes
If Dir(filesavename) < "" Then
resp = MsgBox(Prompt:=filesavename & " already exist, overwrite?",
Buttons:=vbYesNo)
End If
If resp = vbYes Then

Application.ScreenUpdating = False
Application.EnableEvents = False
ActiveWorkbook.SaveAs filesavename

Dim myXLS, mypath
Dim myCSV As String
myXLS = ActiveWorkbook.Name
myCSV = Replace(myXLS, ".xls", ".csv")
mypath = ActiveWorkbook.Path
Sheets("Basic").Select

ActiveSheet.Copy
ActiveWorkbook.SaveAs filename:= _
mypath & "\" & myCSV _
, FileFormat:=xlCSV, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close

MsgBox (myCSV & " have been created and saved in the same directory
with " & myXLS)

Sheets("Advance").Select

Application.EnableEvents = True

Application.DisplayAlerts = True
End If
Else
Cancel = True
End If

Cancel = True

errHandler:
Application.EnableEvents = True
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub


Jean-Yves wrote:
Hi,

Without your code, hard to say. Add a copy to your posting.
Regards

Jean-Yves

"broogle" wrote in message
ups.com...
I have a drop down list in my data validation, but everytime I run

my
code, the drop down button will disappear, to get it back I have to
close my excel (not just the current worksheet) and re-run it

again.
Which code is taking control of this button ? Thanks


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
how do i add an drop down arrow to a cell little c Excel Discussion (Misc queries) 2 July 1st 08 12:26 AM
Excel drop down arrow Zachary Excel Discussion (Misc queries) 4 October 29th 05 11:42 PM
Drop Down Arrow windsong Excel Discussion (Misc queries) 2 October 18th 05 06:56 PM
Show Drop Down Arrow travelersway New Users to Excel 9 October 18th 05 12:51 AM
how to make dropdown arrow disappear in vba mango Excel Worksheet Functions 2 November 30th 04 12:56 AM


All times are GMT +1. The time now is 11:13 PM.

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"