+ Reply to Thread
Results 1 to 16 of 16

Cannot jump to Range because it is hidden

  1. #1
    Registered User
    Join Date
    04-20-2016
    Location
    Basel, Switzerland
    MS-Off Ver
    MS Office 2010
    Posts
    9

    Question Cannot jump to Range because it is hidden

    Apologies if this has been answered before, but I searched multiple forums and did not find a response that was adequate and/or solved my current problem.

    I am in the process of trying to code a Macro for converting text to numbers on 2 separate worksheets (see example below)

    Please Login or Register  to view this content.
    The first part goes smoothly and for the second part, I get a debug pop up and the "Range(Selection, Selection.End(x1Down)).Select" portion of the code is highlighted. When I right click on the highlighted portion, I get the message "Cannot jump to range because it is hidden".

    Any ideas for updating the code so it runs would be greatly appreciated.
    Last edited by quailkatie; 04-22-2016 at 05:59 AM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cannot jump to Range because it is hidden

    Hi katie,

    Welcome to the Forum!

    Try:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    04-20-2016
    Location
    Basel, Switzerland
    MS-Off Ver
    MS Office 2010
    Posts
    9

    Re: Cannot jump to Range because it is hidden

    Thanks for your quick response, but if I try the code, it doesn't give me an error message anymore... but it also doesn't work for what I needed.

    I need all the text in columns A from 2 worksheets converted to a number. I still have little green icons in all cells showing that it's text.

    Have you run into this same error message before, and do you know how can you bypass it or "unhide" this range?

  4. #4
    Registered User
    Join Date
    04-20-2016
    Location
    Basel, Switzerland
    MS-Off Ver
    MS Office 2010
    Posts
    9

    Re: Cannot jump to Range because it is hidden

    If I just play around with my code, and alternate the "YTD" worksheet with the "LW" worksheet the code works and converts all my text in columns A to number.

    Could it be worksheet activation issues or some sort of order of operation that was out of place, perhaps?

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cannot jump to Range because it is hidden

    Hi Katie,

    It baffles me

    Can you:Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).

  6. #6
    Registered User
    Join Date
    04-20-2016
    Location
    Basel, Switzerland
    MS-Off Ver
    MS Office 2010
    Posts
    9

    Re: Cannot jump to Range because it is hidden

    Hi xladept,

    Ill try to attach an example tomorrow. I got the code to work towards my needs for now (I still need to validate, for sure). I was also quite stumped that I was able to get it to work with such a strange swap of code...


    regards,
    quailkatie

  7. #7
    Registered User
    Join Date
    04-20-2016
    Location
    Basel, Switzerland
    MS-Off Ver
    MS Office 2010
    Posts
    9

    Re: Cannot jump to Range because it is hidden

    Hi xladept,

    I have attached an example here with 2 tabs: SDP LW and SDP YTD.
    I am running into this similar error message all over my code now, and its driving me insane. I've tried the object thingy that pops up and clicking "show hidden items", but that doesn't work either.
    I'm so frustrated. It was going so well with my first attempt at writing macros...
    I'm worried that there might be something with the data source that's causing a hang up (its an Excel add-in that extracts query data from SAP).
    Attached Files Attached Files

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cannot jump to Range because it is hidden

    Hi Katie,

    You had leading apostrophes in all those fields - try this:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    04-20-2016
    Location
    Basel, Switzerland
    MS-Off Ver
    MS Office 2010
    Posts
    9

    Re: Cannot jump to Range because it is hidden

    Hi xladept,

    Ill take a look at it and see if this helps. But, I have the similar "cannot jump to range or worksheet or whatever because it is hidden" message for other parts in my Macros. And it seems like they crop up randomly. Where is this even coming from? Did you get the same error message with the data/code I attached? I think I need to try to understand where these error messages are coming from, otherwise my codes will never work. Im afraid its because SAP data absolutely sucks. :,(

    quailkatie

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cannot jump to Range because it is hidden

    I have often noted that SAP is well-named

    What routines should I try?

    The one I sent you gets rid of those apostrophe's and formats the column general.

  11. #11
    Registered User
    Join Date
    04-20-2016
    Location
    Basel, Switzerland
    MS-Off Ver
    MS Office 2010
    Posts
    9

    Re: Cannot jump to Range because it is hidden

    I think I figured out the issue: I have this "cannot jump to range" error message because of result lines or blank lines. It seems Excel gets hung up on these blanks even though they are not selected due to filtering. I'm unable to find any solution to the problem, however.

    Is there any way to ONLY re-format the selected cells from text to number?

    I tried filtering, and then the same code for the selection of a range (i.e. E4:E15000) but then my cells end up getting deleted or new values end up in random places in the worksheets.

    A way for converting the numbers to text would be kind of nice. You think it would be easy! It sucks having to do it manually on multiple sheets every.single.time.

    quailkatie

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cannot jump to Range because it is hidden

    Hi Katie,

    Do you run my code at the outset? My sample has no code, no routines to try

  13. #13
    Registered User
    Join Date
    04-20-2016
    Location
    Basel, Switzerland
    MS-Off Ver
    MS Office 2010
    Posts
    9

    Re: Cannot jump to Range because it is hidden

    The code half-works as is. It works for one worksheet but not the other. It also halts the rest of my code from working...

    I'll have to see if I can adapt it to get it to work with the rest of my macro, but at least I don't have the stupid code randomly deleting and making up new material numbers. No one wants that, lol.

    Thanks for the help.

  14. #14
    Registered User
    Join Date
    04-20-2016
    Location
    Basel, Switzerland
    MS-Off Ver
    MS Office 2010
    Posts
    9

    Re: Cannot jump to Range because it is hidden

    Its not pretty, but I got it to work for my needs.

    Please Login or Register  to view this content.
    Thanks again!
    Last edited by quailkatie; 05-30-2016 at 04:55 AM.

  15. #15
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cannot jump to Range because it is hidden

    Hi Katie,

    Thanks for the rep! Glad you got it working!

    BTW - Your code tags are done incorrectly - just highlight your code and click on the #.

  16. #16
    Registered User
    Join Date
    10-28-2016
    Location
    Reno, Nevada
    MS-Off Ver
    2013
    Posts
    4

    Re: Cannot jump to Range because it is hidden

    Hello,

    I am running into the same error (Cannot jump to range because its hidden). I am trying to autofill a vlookup to the last row of data. It works for column "E", but it does not work for column "F". The Debug points to the last line of code below: Range("F2").AutoFill Destination:=Range("F2:F" & LastRow).

    Please help!

    ChDir "I:\IDEA\Volume\Biweekly\Service Item Activity Template"
    Workbooks.Open Filename:= _
    "I:\IDEA\Volume\Biweekly\Service Item Activity Template\Service Item Activity Log.xlsx"
    Windows("Service Item Errors Template.xlsm").Activate
    Range("E2").Select
    Application.CutCopyMode = False
    ActiveCell.FormulaR1C1 = _
    "=VLOOKUP(RC[-1],'[Service Item Activity Log.xlsx]Sheet1'!C4:C5,2,0)"
    LastRow = Range("E" & Rows.Count).End(xlUp).Row
    Range("E2").AutoFill Destination:=Range("E2:E" & LastRow)
    Range("F2").Select
    ActiveCell.FormulaR1C1 = _
    "=VLOOKUP(RC[-2],'[Service Item Activity Log.xlsx]Sheet1'!C4:C6,3,0)"
    LastRow = Range("F" & Rows.Count).End(xlUp).Row
    Range("F2").AutoFill Destination:=Range("F2:F" & LastRow)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA to jump to range in contained in a SUMIFS formula
    By johnsspillane in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2016, 01:49 PM
  2. [SOLVED] Cannot jump to worksheet because it is hidden - vba headache
    By blzbub in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-15-2015, 01:52 AM
  3. Replies: 5
    Last Post: 09-16-2014, 12:17 PM
  4. Replies: 0
    Last Post: 01-15-2014, 05:17 PM
  5. Search within Range & Quick Jump to Column
    By Saighead in forum Excel General
    Replies: 5
    Last Post: 05-18-2013, 10:27 AM
  6. [SOLVED] Hide columns based on cell value - Unable to set hidden range property of Range Class
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-13-2012, 11:13 PM
  7. jump to specific date in cell-range based on last opening of workbook
    By wamp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-20-2008, 09:06 AM

Tags for this Thread

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