Consulting

Results 1 to 4 of 4

Thread: VBA not to show excel file, excel logo, excel ico but only show a User form

  1. #1
    VBAX Regular
    Joined
    Apr 2018
    Location
    MUMBAI
    Posts
    13
    Location

    VBA not to show excel file, excel logo, excel ico but only show a User form

    Hi All,

    I am not sure if this is possible,

    I have a macro where the user only uses User From and excel is just a means to open it. is it possible that this macro should not show excel logo in the title, file icon, menu bar and not even the splash screen when i open it.

    in short i dont want the user to know that this macro is made in excel vba.



    Thanks a lot in advance, any help will be highly appreciated.

  2. #2
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    something to play with:

    ThisWorkbook code module:
    Private Sub Workbook_Open()
        UserForm1.Show vbModeless
    End Sub
    UserForm1 code module
    Private Sub UserForm_Initialize()
        With Application
            .Visible = False
            .DisplayFullScreen = True
            UserForm1.Width = .ActiveWindow.Width
            UserForm1.Height = .ActiveWindow.Height
            UserForm1.Move 0, 0
        End With
    End Sub
    
    
    Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
        ThisWorkbook.Close SaveChanges:=True
        With Application
            .Visible = True
            .DisplayFullScreen = False
            .Quit
        End With
    End Sub
    
    
    Private Sub CommandButton1_Click()
        Unload Me
    End Sub
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

  3. #3
    VBAX Regular
    Joined
    Apr 2018
    Location
    MUMBAI
    Posts
    13
    Location
    Quote Originally Posted by mancubus View Post
    something to play with:

    ThisWorkbook code module:
    Private Sub Workbook_Open()
        UserForm1.Show vbModeless
    End Sub
    UserForm1 code module
    Private Sub UserForm_Initialize()
        With Application
            .Visible = False
            .DisplayFullScreen = True
            UserForm1.Width = .ActiveWindow.Width
            UserForm1.Height = .ActiveWindow.Height
            UserForm1.Move 0, 0
        End With
    End Sub
    
    
    Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
        ThisWorkbook.Close SaveChanges:=True
        With Application
            .Visible = True
            .DisplayFullScreen = False
            .Quit
        End With
    End Sub
    
    
    Private Sub CommandButton1_Click()
        Unload Me
    End Sub

    Thanks Mancubus,

    this works well but any idea on how to change the Icon of the Excel File and how to stop the excel flash screen from displaying?

    I am looking for something which should not show any bit of excel name, icon, flash screen.

    Thanks a lot

  4. #4
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    welcome.

    i am not sure i can follow you but see the attachment.

    additional code in the uf's code module is lifted from:
    http://www.excelfox.com/forum/showth...eBar-And-Frame
    Attached Files Attached Files
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

Posting Permissions

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