+ Reply to Thread
Results 1 to 5 of 5

Using smallscroll to find a value and move to it

  1. #1
    Forum Contributor
    Join Date
    12-31-2004
    Posts
    160

    Using smallscroll to find a value and move to it

    Hi:
    I have a worksheet with the columns frozen at column "F" .
    Row F16 through IP16 contain dates starting with a sunday date and ending with a saturday date then repeating so you have several weeks between F16 and IP16. These are then used to record data on a weekly basis by the items in column B17 thru B63.

    You then type in Cell B12 the weeks starting date you want to find and C12 the ending date, the data is the sorted and a chart is printed for the week by pressing a command button.

    All this works fine and good but what I want to do is when you type a date in B12 have the columns scroll over to that date to eliminate manual scrolling.

    I already have it scrolling to the the next starting week by use of
    smallscroll toright: =7 this is under a command button sub that prints the chart.

    But if I need to go back several weeks I would like the columns to scroll right or left based on the date in B12.

    How would I code it to make this possible?


    Thanks
    Charles

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You should be able to use the .Find method to locate the cell & select it. Attach an example workbook if you need help with it.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    12-31-2004
    Posts
    160

    Question Still could use some help please

    royUK

    I tried to use the .Find method as you suggested but must be doing something wrong please help.

    Thanks
    Charles

  4. #4
    Forum Contributor
    Join Date
    12-31-2004
    Posts
    160

    Question Getting somewhere but am stuck

    I got the .Find part to work now I need to figure out a way to read into a variable the number of cells in range F16 to the cell that contains the search criteria.
    Then maybe I can use activewindow.smallscroll toright or left the number of cells contained in the variable.

    Any Idea's guys?

    Thanks
    Charles

  5. #5
    Forum Contributor
    Join Date
    12-31-2004
    Posts
    160

    Question

    Please Login or Register  to view this content.
    How can I count the number of cells from F16 to firstaddress?

    Charles

+ 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