+ Reply to Thread
Results 1 to 4 of 4

new windows sizing/location/placement..

  1. #1
    Registered User
    Join Date
    11-18-2011
    Location
    indiana, united states
    MS-Off Ver
    365
    Posts
    11

    new windows sizing/location/placement..

    I have two excel files, let's call them excel1.xlsx and excel2.xlsx. When opening the first file, excel1, I would like to automatically open the excel2 file. I would also like the excel2 file to always be on top of the excel 1 file, and I would like to set window size and window location of both files so that they always open in the same location on my computer screen.


    Can anyone shoot me some pointers on where to start for this? Is all of this possible? Are any of these items not possible at all?

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: new windows sizing/location/placement..

    Hi,

    please check these 2 files: File1.xlsm and File2.xlsm

    Please adapt the file names in the code when you change them
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    11-18-2011
    Location
    indiana, united states
    MS-Off Ver
    365
    Posts
    11

    Re: new windows sizing/location/placement..

    Quote Originally Posted by tehneXus View Post
    Hi,

    please check these 2 files: Attachment 246887 and Attachment 246888

    Please adapt the file names in the code when you change them
    Thanks for that! works great. Now I just need to see if I can get the second window to open up in a given size & location....any takers?

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: new windows sizing/location/placement..

    Hi,

    the size and location of both files are set in the "Private Sub Workbook_Activate()" event of File2

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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