+ Reply to Thread
Results 1 to 6 of 6

How to synchronise movement of a userform and the spreadsheet application behind

  1. #1
    Registered User
    Join Date
    07-08-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    How to synchronise movement of a userform and the spreadsheet application behind

    I have a userform that, through the use of API functions, allows me a 'window' right through the form so that I can view a chart sitting on the spreadsheet behind it. I've done this for speed. The chart is complex and the traditional 'export - upload image file to userform' approach, for each update of the chart, was simply taking too long.

    My problem is that when I drag the userform around the screen the excel application/spreadsheet behind it remains static, so I lose the position of the chart through the userform window. Does anyone know a way to synchronise a userform and the spreadsheet application behind it, so that if the user drags the userform around the screen, the excel application moves with it?

    Many thanks

    Farnsbarnes

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: How to synchronise movement of a userform and the spreadsheet application behind

    Couldn't you use API to show the chart on the userform wherever it was positioned in relation to the chart?

    Or perhaps you could take a look at the Microsoft Office 11.0 Chart Control?
    Last edited by Norie; 09-16-2015 at 02:31 PM.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-08-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to synchronise movement of a userform and the spreadsheet application behind

    Hi Norie

    I was afraid you'd say that. A guru supplied me with the API code for the userform, but my real understanding of API functions it is almost nothing! Would you be able to provide some code to do this?

    I'll also take a look at MS Chart Control, but again brand new to me.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: How to synchronise movement of a userform and the spreadsheet application behind

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  5. #5
    Registered User
    Join Date
    07-08-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to synchronise movement of a userform and the spreadsheet application behind

    Sure, I've attached the concept of the userform containing a window to the chart behind it. Click on 'Show userform' and you'll see what I mean

    Thanks
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-08-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to synchronise movement of a userform and the spreadsheet application behind

    Anyone interested in having a go at this?

+ 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. How to synchronise two columns of data?
    By gilmom in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-17-2015, 12:01 PM
  2. Movement on a spreadsheet
    By samtaxman in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-27-2013, 10:06 AM
  3. preventing userform movement
    By mhill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2013, 02:28 AM
  4. Automatic movement of date indicator on spreadsheet
    By Wizards in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 09:03 AM
  5. Synchronise excel formula in acces
    By bjelinski in forum Access Tables & Databases
    Replies: 1
    Last Post: 07-01-2010, 11:08 AM
  6. Userform output to worksheet: row movement
    By ilovelagar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2009, 05:33 PM
  7. synchronise table in 3 spreadsheets
    By tdavo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2008, 06:37 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