+ Reply to Thread
Results 1 to 4 of 4

Shape to always be in view?

  1. #1
    Registered User
    Join Date
    03-31-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    68

    Shape to always be in view?

    Hi all,

    Is it possible to have a 'shape' that i have inserted to always be in the Top LEFT corner regardless in a worksheet?

    I have the TOP ROW frozen at the minute and the "Shape" always shows when moving down the rows. The problem is that you can not longer see it when moving across the columns.

    Thanks in advance.

    Cross-posted - http://www.mrexcel.com/forum/excel-q...ml#post3689404

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Shape to always be in view?

    There is no event that is raised when a worksheet is scrolled.

    There are 2 alternatives:
    • Use a timer to position the shape every so often (Yeuch!)
    • Subclass Excel (Double or treble yeuch, in bold, caps italicised and bright red)

    The timer is a simple approach which I'll leave to you. Subclassing Excel is 'advanced programming' and has the rather dubious honour of having the potential to crash Excel (immediately, and without warning) or cause a BSOD if you dare even go into the VBA dev environment while the code is running - so that's not something to consider as a quick hack. It's not a problem with the code, but rather the code is intercepting Windows messages and acting on them. Windows does not take kindly to having it's messages held up while you poke around in the code.

    If you really want to explore this option, have a read... However, I'd seriously suggest you use it as an 'educational' exercise and only dare to roll it out once you're totally happy you understand what's happening, what it does and how it works. Users tend to get a little upset if Excel disappears taking the last 4 hours work in 5 workbooks with it.
    Last edited by cytop; 01-17-2014 at 07:17 AM.

  3. #3
    Registered User
    Join Date
    03-31-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Shape to always be in view?

    Hi Cytop,

    I think i will leave this then. The person using the Workbook will just have to scroll back to Column "A" the last thing i need to to chance it crashing and us losing data.

    Thank you very much for this information.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Shape to always be in view?

    freeze both the top row and first column
    Cheers
    Andy
    www.andypope.info

+ 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. ADD arrow shape button to view next record
    By dingdang in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2013, 11:01 AM
  2. [SOLVED] Use a button to control a macro that inserts an image into a shape or resets the shape
    By nwb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 04:41 PM
  3. Replies: 0
    Last Post: 03-28-2013, 02:35 PM
  4. Snap view to a shape?
    By Cheshire in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-03-2010, 12:47 PM
  5. Macro to toggle view shape
    By freud1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2010, 05:23 AM

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