Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default File dialog makes application visible

Good day Group,

When opening the Workbook follwing is stated:

Application visible =false
Userform1.show

From a Comandbutton on the Userform the code below executes.

When clicking the OK button or the Cancel button in the file dialog the
Excel sheet
becomes visible.

Looking for hints how to keep the Excel application non visible all the
time,

Brgds CG Rosen

--------------------------------------------------------------------------------

Dim fd As FileDialog
Dim strPath As String
Dim B As Integer
Dim IncludeSubfolders As Boolean
Set fd = Application.FileDialog(msoFileDialogFolderPicker)
Dim selFldr As Variant

With fd
If .Show = -1 Then
For Each selFldr In .SelectedItems
strPath = selFldr & "\"
Next selFldr
Else
Exit Sub
End If
End With
IncludeSubfolders = False
B = MsgBox("Include Subfolders?", vbYesNo, "Scope")
If B = 6 Then
IncludeSubfolders = True
Else
IncludeSubfolders = False
End If

more code

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default File dialog makes application visible

try the following...

sub nameofsub

Application.ScreenUpdating = False

other code

Application.ScreenUpdating = True

end sub


good luck....

"CG Rosen" wrote:

Good day Group,

When opening the Workbook follwing is stated:

Application visible =false
Userform1.show

From a Comandbutton on the Userform the code below executes.

When clicking the OK button or the Cancel button in the file dialog the
Excel sheet
becomes visible.

Looking for hints how to keep the Excel application non visible all the
time,

Brgds CG Rosen

--------------------------------------------------------------------------------

Dim fd As FileDialog
Dim strPath As String
Dim B As Integer
Dim IncludeSubfolders As Boolean
Set fd = Application.FileDialog(msoFileDialogFolderPicker)
Dim selFldr As Variant

With fd
If .Show = -1 Then
For Each selFldr In .SelectedItems
strPath = selFldr & "\"
Next selFldr
Else
Exit Sub
End If
End With
IncludeSubfolders = False
B = MsgBox("Include Subfolders?", vbYesNo, "Scope")
If B = 6 Then
IncludeSubfolders = True
Else
IncludeSubfolders = False
End If

more code

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default File dialog makes application visible

sorry... should have read the whole mail..

Dim fd As FileDialog
Dim strPath As String
Dim B As Integer
Dim IncludeSubfolders As Boolean
Set fd = Application.FileDialog(msoFileDialogFolderPicker)
Dim selFldr As Variant
--------------------------
Application.ScreenUpdating = False

With fd
If .Show = -1 Then
For Each selFldr In .SelectedItems
strPath = selFldr & "\"
Next selFldr
Else
Exit Sub
End If
End With
IncludeSubfolders = False
B = MsgBox("Include Subfolders?", vbYesNo, "Scope")
If B = 6 Then
IncludeSubfolders = True
Else
IncludeSubfolders = False
End If

more code

-------------------------------------
Application.ScreenUpdating = True

end sub

This allows "forms" to be opened and closed, but the excel sheets stay
"static' i.e. unopened


"Les Gombart" wrote:

try the following...

sub nameofsub

Application.ScreenUpdating = False

other code

Application.ScreenUpdating = True

end sub


good luck....

"CG Rosen" wrote:

Good day Group,

When opening the Workbook follwing is stated:

Application visible =false
Userform1.show

From a Comandbutton on the Userform the code below executes.

When clicking the OK button or the Cancel button in the file dialog the
Excel sheet
becomes visible.

Looking for hints how to keep the Excel application non visible all the
time,

Brgds CG Rosen

--------------------------------------------------------------------------------

Dim fd As FileDialog
Dim strPath As String
Dim B As Integer
Dim IncludeSubfolders As Boolean
Set fd = Application.FileDialog(msoFileDialogFolderPicker)
Dim selFldr As Variant

With fd
If .Show = -1 Then
For Each selFldr In .SelectedItems
strPath = selFldr & "\"
Next selFldr
Else
Exit Sub
End If
End With
IncludeSubfolders = False
B = MsgBox("Include Subfolders?", vbYesNo, "Scope")
If B = 6 Then
IncludeSubfolders = True
Else
IncludeSubfolders = False
End If

more code

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
FYI Excel 2007: Saving a xlsm file with a hidden worksheet activated makes worksheet visible David G.[_3_] Excel Programming 0 August 3rd 09 07:16 PM
Application makes VBE crash. How do I troubleshoot? Bdra Excel Programming 4 January 10th 08 08:27 AM
Application.visible........ Duncan[_5_] Excel Programming 8 June 27th 06 10:56 AM
Application Visible Frank Excel Programming 6 December 20th 05 08:01 PM
Application.visible help Glen Mettler[_4_] Excel Programming 0 February 16th 05 10:04 PM


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