+ Reply to Thread
Results 1 to 5 of 5

Adding scroll feature in an image that appears on a userform

  1. #1
    Registered User
    Join Date
    08-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    39

    Adding scroll feature in an image that appears on a userform

    Hello,

    I believe this to be a fairly complex question, but wanted to see what you guys have to say about it.

    ExampleFile.xlsm

    So, I need one functional aspect of the picture changed: 1. The picture needs to have a scroll feature on the userform. This image is generated by the 'CameraTool' and is of a table on a spreadsheet (which changes sizes), and displayed on a userform. I am planning to have the image change sizes according to the number of visible cells, but keep the picture box on the userform the same size, and have a scroll feature rather than the image be compressed into the display box. It was the only way I could find to have an image of a table located on a spreadsheet to be visible on a userform.

    The whole workbook is intended to be a vacation calendar for a company department, where employees can input their vacation requests. The code for producing the image is located in Module1, and the actual image is produced from the Vacation Schedule tab. The userform the image is displayed on is accessed by running the macro, selecting 'EagleFord' and "Johnny, Archie" and clicking "Edit / Modify.."

    This is intended to show the vacation requests the person has already submitted.

    I appreciate your time and thoughts.


    Adam

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

    Re: Adding scroll feature in an image that appears on a userform

    Rather than struggle with images why not use a multi column listbox?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    08-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Adding scroll feature in an image that appears on a userform

    Hey Andy, Thanks for your help.

    I definitely started with a complex question, and after looking at the alternative it was more complicated than it needed to be.

    With the multicolumn listbox, I am planning to have a a loop that runs i=1 to NumberOfRows starting at Cell A1; having an If statement in the loop: If A[i] is visible, then copy the rows values to variables that will display in the listbox, else next i.

    Does that sound like a good approach?

    Much appreciation,

    Adam

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

    Re: Adding scroll feature in an image that appears on a userform

    Yes that sounds right. Just be aware that dates may appear in different format unless you add code to handle that.

  5. #5
    Registered User
    Join Date
    08-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Adding scroll feature in an image that appears on a userform

    Andy, thanks for heads-up. Looks like I've run into some sort of problem, possibly caused by a formatting issue but probably an "Object" issue.

    I've created another post and wondering if you could have a look. http://www.excelforum.com/excel-prog...ml#post3908575

    Thank you very much for your help.

    Adam

+ 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. New image attachment feature
    By 6StringJazzer in forum Suggestions for Improvement
    Replies: 0
    Last Post: 10-30-2014, 11:37 AM
  2. Range Appears to be Recalculating Upon Scroll
    By AlvaroSiza in forum Excel General
    Replies: 1
    Last Post: 10-31-2011, 09:31 PM
  3. Adding Image into a excel cell and adding a hyperlink to the image
    By saravananiyyanar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2011, 04:16 AM
  4. Scroll bar appears inactive or locked
    By Grimace in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-30-2010, 12:51 AM
  5. the scroll wheel button should have an optional pan feature
    By chandler117 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-27-2005, 04:05 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