Consulting

Results 1 to 11 of 11

Thread: Solved: .Application.Visible = False

  1. #1

    Question Solved: .Application.Visible = False

    Hi all
    I've provided a file and write the following code

    PHP Code:
    Private Sub Workbook_Open()
    Windows("stiky not.xlsm").Application.Visible False
    userform1
    .show
    End Sub 
    But when I open a file in another Excel file can be seen in the page
    Is there any way to hide files, Excel Page not found?

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    what do you mean "can be seen in the page" what page? in a worksheet?
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  3. #3

    Question Application.Visible = False

    Yes Excel environment.

  4. #4
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Im afraid you still havent been clear!
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  5. #5

    A

    Quote Originally Posted by Simon Lloyd
    Im afraid you still havent been clear!
    Hi all
    Dear friend, I am sorry that I speak perfect English
    I open an Excel file from an Excel file and then I have written the following code into it
    I open
    PHP Code:
    application.windows.application.visible=false 
    All workbook is Hide
    I just want the file to be coded Hide

  6. #6

    help

    please help me please

  7. #7

    Question help me

    Please tell Excel to hide the master formulas

  8. #8
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    In an effort to clear up this thread, are you wanting:

    (a) to hide a master workbook from users?, or
    (b) to hide a worksheet containing formulas within a workbook?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  9. #9

    Unhappy help

    Quote Originally Posted by Aussiebear
    In an effort to clear up this thread, are you wanting:

    (a) to hide a master workbook from users?, or
    (b) to hide a worksheet containing formulas within a workbook?
    Dear friend
    Thank you very much
    Opening form
    In the picture below I Data - A workbook Hide and the Other workbooks is unhide
    Sorry for not good English
    Attached Images Attached Images
    • File Type: jpg b.JPG (119.0 KB, 8 views)

  10. #10
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    If I am understanding correctly, you want to change this specific workbook's visibility. If that is correct, maybe try the workbook's IsAddin property.

    Not well thought through, but as a start, something like:

    In the Userform's module:
    [vba]Option Explicit

    Private Sub cmdUnload_Click()
    Unload Me
    End Sub

    'vbFormControlMenu 0 The user has chosen the Close command from the Control menu on the UserForm.
    'vbFormCode 1 The Unload statement is invoked from code.
    'vbAppWindows 2 The current Windows operating environment session is ending.
    'vbAppTaskManager 3 The Windows Task Manager is closing the application.
    Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
    Dim bWasSaved As Boolean

    If CloseMode <= vbFormCode Then
    bWasSaved = ThisWorkbook.Saved
    ThisWorkbook.IsAddin = False
    ThisWorkbook.Saved = bWasSaved
    End If
    End Sub[/vba]

    In the ThisWorkbook Module:
    [vba]Option Explicit

    Private Sub Workbook_Open()
    ThisWorkbook.IsAddin = True
    ThisWorkbook.Saved = True
    frmMyForm.Show vbModal
    End Sub[/vba]

    Hope that helps,

    Mark
    Attached Files Attached Files

  11. #11

    Smile

    Quote Originally Posted by GTO
    If I am understanding correctly, you want to change this specific workbook's visibility. If that is correct, maybe try the workbook's IsAddin property.

    Not well thought through, but as a start, something like:

    In the Userform's module:
    [vba]Option Explicit

    Private Sub cmdUnload_Click()
    Unload Me
    End Sub

    'vbFormControlMenu 0 The user has chosen the Close command from the Control menu on the UserForm.
    'vbFormCode 1 The Unload statement is invoked from code.
    'vbAppWindows 2 The current Windows operating environment session is ending.
    'vbAppTaskManager 3 The Windows Task Manager is closing the application.
    Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
    Dim bWasSaved As Boolean

    If CloseMode <= vbFormCode Then
    bWasSaved = ThisWorkbook.Saved
    ThisWorkbook.IsAddin = False
    ThisWorkbook.Saved = bWasSaved
    End If
    End Sub[/vba]
    In the ThisWorkbook Module:
    [vba]Option Explicit

    Private Sub Workbook_Open()
    ThisWorkbook.IsAddin = True
    ThisWorkbook.Saved = True
    frmMyForm.Show vbModal
    End Sub[/vba]
    Hope that helps,

    Mark
    Oh My God
    Yes
    Your answer is correct
    Thank you very, very much my teacher

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •