Results 1 to 3 of 3

Macro code to change cell range to named range

Threaded View

  1. #1
    Registered User
    Join Date
    12-08-2007
    Posts
    10

    Macro code to change cell range to named range

    I need to change my macro code so the macro will use a range based upon a name I've given it (insert -> Name->Define), instead of a fixed cell range. Currently my code is as follows:

    Private Sub ComboBox10_Change()
    
    Application.ScreenUpdating = False
    
    Select Case ComboBox10.Value
    Case "0"
    Rows("754:817").EntireRow.Hidden = True
    Case Else
    Rows("754:817").EntireRow.Hidden = False
    End Select
    
    
    End Sub
    The range in the sample is 754:817. I need it to just look up a name range that has those cells, like the range list1, for example. Any help is appreciated.

    If you don't understand what I'm asking for then please reply and I'll clarify.
    Last edited by Orlic; 01-25-2008 at 11:51 AM.

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