+ Reply to Thread
Results 1 to 7 of 7

Application.Run Range ("WORKSPACE.REFRESH") -what is this?

  1. #1
    Registered User
    Join Date
    03-13-2013
    Location
    East Sussex
    MS-Off Ver
    Excel 2010
    Posts
    8

    Application.Run Range ("WORKSPACE.REFRESH") -what is this?

    Hello - I am very new to VBA and taken over a macro file written by someone else, and I am trying to make some adjustments and understand the code.

    this line
    Application.Run Range ("WORKSPACE.REFRESH") appears a number of times (the macro is going between 2 files). There is no Range in the file with this name.

    can anyone let me know why this is here and what it does - I have tried recording a couple of very easy macros, to copy , paste into a new file and save - which work fine - and I don't see this line appearing at all. is it really needed?

    many thanks
    alane

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Application.Run Range ("WORKSPACE.REFRESH") -what is this?

    Check the Named Range "WORKSPACE.REFRESH" by pressing Ctrl+F3, in which the macro names are entered and called using that code.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Application.Run Range ("WORKSPACE.REFRESH") -what is this?

    you might try running this
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    03-13-2013
    Location
    East Sussex
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Application.Run Range ("WORKSPACE.REFRESH") -what is this?

    When I hover my cursor over the Range it shows:
    Range ("WORKSPACE.REFRESH") = < Method 'Range' of object '_Global' Failed>

    I think the person who originally wrote the macro was quite technical, so is it maybe in there to give me an error if there is one, but I've never seen that error message coming up when macro is run so maybe i can ignore that line?

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Application.Run Range ("WORKSPACE.REFRESH") -what is this?

    where exactly is the original run code located and which workbook is active when it runs? (you need to make sure that the same workbook is active when testing the range)

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Application.Run Range ("WORKSPACE.REFRESH") -what is this?

    perhaps try
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-13-2013
    Location
    East Sussex
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Application.Run Range ("WORKSPACE.REFRESH") -what is this?

    Thank you very much, I will try you suggestions when I am back at my work computer tomorrow. Such a lot to learn for VBA! No-one else at work has the know-how so I am trying to self teach. Thanks :-)

+ 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