+ Reply to Thread
Results 1 to 3 of 3

"Splash" screen not displaying correctly when opening.

  1. #1
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    "Splash" screen not displaying correctly when opening.

    Hi Guys,

    I have a workbook that has a userform on it. So as you know this allows different people login and therefore display different sheets depending on who logs in. While waiting for the person to log in the workbook opens on the "Splash" screen. Sheet number 16. The problem is for some reason every second time the workbook is opened the the screen does a little flicker prior to opening the splash page then it settles on the splash page with cells P2 & R2 selected asking for username & password for someone to login. Due to this the page is displaying colmun G - Y and half the message on the splash screen is hanging off the page on column A-G.

    I have attached my "this workbook" code to see if you can see anything that could cause this. This only happens every second time the workbook is opened. Every other time I open it it does not do the flicker and displays it properly. This is very annoying. I have highlighted in red the most recent changes I made to the code before this happened. Any help greatly appreciated. User name John, Password "test"

    Update**
    I have had someone using excel 2010 look at this attachment and they are not getting my error, I am getting the error on my work pc (2003) and my personal laptop which has both 2003 + 2007 and I am getting the error on both these versions. I wonder if someone using either of these versions could take a look and see if they are experiencing the same issues.

    This is the "This Workbook" Code
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: "Splash" screen not displaying correctly when opening.

    I can duplicate your problem with Excel 2003 (Windows 10 64-bit). I narrowed down the problem to one line in the Workbook_Open event procedure in the ThisWorkbook code module. If you comment out the Hide columns line, the problem goes away. I'm at a loss to explain why.

    Please Login or Register  to view this content.
    Do you really need to force those columns hidden? Or perhaps you could hide them in the Workbook_BeforeClose procedure.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: "Splash" screen not displaying correctly when opening.

    Hi Alphafrog,

    I recognise the name, think you have helped me beofre. Thank you.

    The idea behind it is, when user 1 logs in the numbers "1234" are input into a specific cell. This then triggers all columns to be visible. When any other user logs in this particular cell is cleared of the "1234" therefore hiding certain sensitive columns. However I have commented out the red line above, on the effected sheets and now my splash sheet problem is solved and the columns are still hiding and unhiding. To be honest, I'm not very well up on VBA. Everything I have done to date has been thanks to input by people like yourself. What I did was I put the below code on every sheet to ensure that everytime the workbook was saved or closed every sheet would revert back to protected incase it had been unprotected for whatever reason. (probably a much better way of doing this once on this workbook rather than on every sheet?). But in my newbieness I think I copied the code from the VBA in sheet 2 (which contained the lines below in red) and I pasted them on all the sheets. I can see that it is already in the codes in sheet 2 so probably having it in "this workbook" aswell was screwing everything up. But all seems to be working great now. Really appreciate the help.

    Thanks

    Matt

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 11-08-2015, 03:57 PM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. reference date above last cell in range displaying "1" or "2"
    By leeroyrooney in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-20-2013, 05:41 PM
  5. Opening "On-Screen Keyboard" in Windows 8 using VBA
    By wscottd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-11-2013, 09:43 PM
  6. [SOLVED] Displaying Yahoo Stock data as "70.58" instead of "N/A - <b>70.58</b>"
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 05:10 PM
  7. [SOLVED] displaying 45 as "P", 65 as "P+20"....... equation question?
    By shambo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2012, 07:10 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1