+ Reply to Thread
Results 1 to 3 of 3

Remember the Position and Size of Certain Workbooks

  1. #1
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Remember the Position and Size of Certain Workbooks

    I'm trying to get Excel to remember the position and size of certain workbooks. I found these two macros that were created for this but I keep getting the following error:

    Run-time error 1004: Unable to set the Top property of the Window class

    I'm assuming it has something to do with the "named references" from the instructions, which I'm not familiar with. Is named references the same as name ranges because when I search it on the net, it comes back as name ranges, which I still don't understand how that would play into getting this to work?

    The basic instructions are this:

    "A better approach may be to store the positioning locations in the workbook itself, in named references. That's the approach taken in the following macros:"

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Remember the Position and Size of Certain Workbooks

    Check this thread;

    https://www.excelforum.com/excel-pro...placement.html

  3. #3
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Re: Remember the Position and Size of Certain Workbooks

    Quote Originally Posted by PaulSP8 View Post
    Thank you! That's seems to work great so far, no errors!

+ 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. Setting pixel size and position of window
    By terrypin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2020, 04:41 AM
  2. Why excel remember last excel window size?!!!
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-27-2015, 05:19 PM
  3. When/why does the VBIDE remember/forget its window state/position?
    By jasmith4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2015, 04:51 PM
  4. [SOLVED] Change Shape Size / Keep its Position
    By Broobi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2014, 12:05 PM
  5. pdf window size and position
    By var in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2014, 09:25 AM
  6. Excel - Window to stay same size and position
    By flipflop in forum Excel General
    Replies: 0
    Last Post: 12-30-2010, 05:22 AM
  7. Window Position & Size
    By [email protected] in forum Excel General
    Replies: 4
    Last Post: 05-18-2005, 01:06 PM

Tags for this Thread

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