+ Reply to Thread
Results 1 to 12 of 12

Spreadsheet control with range

  1. #1
    Registered User
    Join Date
    02-18-2005
    Posts
    16

    Spreadsheet control with range

    Hi all im having a tough time trying to figure out a way to select a range (which will be the entire row )based on a condition that will be data selected from a combobox and display that range in a userform with spreadsheet contol 9


    what i have so far is a worksheet with all the data.
    i have a combobox on a userform that is prefilled with data from a specific column

    every thing is working except when i select the entire row how do i change that to a range that i can use in the spreadsheet control 9 that is added to the userform.

    my code is below

    Please Login or Register  to view this content.
    Last edited by anwarbham; 01-17-2010 at 03:42 PM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Spreadsheet control with range

    Hi anwarbham
    change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    X will be a range to use
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Spreadsheet control with range

    anwarbham,

    Please take a few minutes to read the Forum Rules, and then edit your post to wrap your code with Code Tags.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    02-18-2005
    Posts
    16

    Re: Spreadsheet control with range

    Hi Iv tried the code but i get given invalid or unqualified refrance so

    i have tried to change x to (siterange) that has been declared as a range in the top of the code

    I have changed the code
    Please Login or Register  to view this content.
    i dont get any more errors But x has no value when i go through the code
    Last edited by anwarbham; 01-17-2010 at 11:04 AM.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Spreadsheet control with range

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

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

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    02-18-2005
    Posts
    16

    Re: Spreadsheet control with range

    Quote Originally Posted by royUK View Post
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Dont understand my last post had the tags included

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Spreadsheet control with range

    Roy was referring to your first post, which you should still be able to edit to add code tags.

  8. #8
    Registered User
    Join Date
    02-18-2005
    Posts
    16

    Re: Spreadsheet control with range

    Quote Originally Posted by shg View Post
    Roy was referring to your first post, which you should still be able to edit to add code tags.
    cheers done

  9. #9
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Spreadsheet control with range

    maybe something like
    Please Login or Register  to view this content.

  10. #10
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Spreadsheet control with range

    This series of articles by Dennis Wallentin is about the best on the use of the Spreadsheet Control

  11. #11
    Registered User
    Join Date
    02-18-2005
    Posts
    16

    Re: Spreadsheet control with range

    Its ok i managed to fix the problem myself the solutions provided overhere were a bit too messy thanks for trying the final code is below for anyone else who might want to try some thing similar

    Please Login or Register  to view this content.

  12. #12
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Spreadsheet control with range

    or instead of the sqaure peg in the round hole try
    Please Login or Register  to view this content.

+ 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