+ Reply to Thread
Results 1 to 9 of 9

VBA editor replaces 'Range' with 'range'

Hybrid View

  1. #1
    peter
    Guest

    Re: VBA editor replaces 'Range' with 'range'

    UPDATE

    What prob. caused it was that I defined the name of a Property
    method to be 'range'.

    I've removed that and changed every other 'range' and there's
    no sign of any in the Locals page.

    But I've still got the problem, even after restarting VBA.

    I didn't specifically say, but it's changed ALL my Ranges!

    I sure hope someone can help, as I'm dead in the water
    like this.

    ciao,
    Peter




    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

  2. #2
    Dick Kusleika
    Guest

    Re: VBA editor replaces 'Range' with 'range'

    Peter

    All you need to do is create a variable with the capitalization you want.
    Then delete it.

    Dim Range

    the delete it. Now

    Dim x As Range

    will be capitalized how you expect.

    When you create a variable (or property, in your case) that is a keyword,
    VBA remembers the capitalization even after you delete the
    variable/property. This just tricks into doing it right.


    --
    **** Kusleika
    Excel MVP
    Daily Dose of Excel
    www.*****-blog.com



    peter wrote:
    > UPDATE
    >
    > What prob. caused it was that I defined the name of a Property
    > method to be 'range'.
    >
    > I've removed that and changed every other 'range' and there's
    > no sign of any in the Locals page.
    >
    > But I've still got the problem, even after restarting VBA.
    >
    > I didn't specifically say, but it's changed ALL my Ranges!
    >
    > I sure hope someone can help, as I'm dead in the water
    > like this.
    >
    > ciao,
    > Peter
    >
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!




  3. #3
    peter
    Guest

    Re: VBA editor replaces 'Range' with 'range'

    That's great, thanks ****.


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

+ 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