+ Reply to Thread
Results 1 to 2 of 2

Error Message:Select Method of Range class Failed

Hybrid View

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    44

    Error Message:Select Method of Range class Failed

    Dear all
    I run a large code and a section of the code appears to fail

    What is bizare is that I use exactly the same code before and it does not fail
    (Both of the worksheets have been cleared from any previous data)

    A message Select Method of Range class Failed appears
    'Transfer Data
    Set Rng1 = EMN.Range("C3").Resize(Numperiods, 1)
    Rng1 = WorksheetFunction.Transpose(AnnualExternalMaintenanceCost)
    Rng1.Select
    Selection.NumberFormat = "$#,##0"
    Set Rng2 = EMN.Range("D3").Resize(Numperiods, 1)
    Rng2 = WorksheetFunction.Transpose(AnnualExternalMaintenanceCharge)
    Rng2.Select
    Selection.NumberFormat = "$#,##0"
    
    Set Rng1 = IMN.Range("C3").Resize(Numperiods, 1)
    Rng1 = WorksheetFunction.Transpose(AnnualInternalMaintenanceCost)
    Rng1.Select 'Select Method of Range class Failed
    Selection.NumberFormat = "$#,##0"
    Any ideas why?

    Many Thanks
    Dora

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Error Message:Select Method of Range class Failed

    Try not using Select.
    Rng1.NumberFormat = "$#,##0"
    If posting code please use code tags, see here.

+ 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