+ Reply to Thread
Results 1 to 5 of 5

Show column to left of named range when clicking hyperlink

  1. #1
    Registered User
    Join Date
    11-20-2014
    Location
    Huntsville, AL
    MS-Off Ver
    MS Office 2007
    Posts
    6

    Angry Show column to left of named range when clicking hyperlink

    Hi everyone! I have been trolling around this forum for months trying to teach myself VBA. Your answers to people's questions have been great, for which I thank you. But now I'm stuck on something that I think is probably pretty easy and hoping you can help.

    I have a number of Cost Centers, each of which has one or more subordinate work centers. I have used the cost center name to define ranges for the appropriate work centers as shown below:

    Cost Center Work Center Description Range Name
    3U45P 2P3007001 Bearings 3U45P (2P3007001)
    _________________________________________________________
    3U46P 2P3008001 FPI 3U46P (2P300801, 2P3008002, 2P3008003, 2P3008004)
    2P3008002 MPI
    2P3008003 X-Ray Booth
    2P3008004 X-Ray Real Time
    _________________________________________________________
    etc.

    I have a data sheet ('V2') into which I import information from another system, including the cost center. This cost center entry triggers a data validation drop-down from which the user can pick the appropriate work center from an abbreviated list (from that Cost Center only). However, since the Work Center nomenclature isn't terribly descriptive, I decided to hyperlink the Cost Center name in 'V2' to the appropriate range in the worksheet where the information is stored ('WCs with QA'). This will allow them to read the Work Center description more quickly and easily.

    In order to display the selected range at the top left when hyperlinking, I scavenged the following from the 'net:

    Please Login or Register  to view this content.
    What I would really like is to also display the column to the left of the range to reassure people that they are looking at the correct cost center's work centers. I have tried defining new variables using offset, trying
    Please Login or Register  to view this content.
    , nothing seems to work. Because I need the Work Center names left as they are for another function in the workbook, I can't add the description to the data validation. Is there a way to automatically display the data one column to the left? Should I somehow restructure my hyperlink to find the Cost Center in sheet 'WCs with QA' rather than the named range? Here is the code for the hyperlinks, which is done when the data are imported:
    Please Login or Register  to view this content.
    I haven't even started working on how to update the link if someone changes the Cost Center after the data are imported.... Thanks so much for any assistance you can provide, and Happy New Year!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Show column to left of named range when clicking hyperlink

    Hi,

    Any chance you could upload the workbook and explain with a narrative comment exactly what you want to do/select and what you want to happen?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-20-2014
    Location
    Huntsville, AL
    MS-Off Ver
    MS Office 2007
    Posts
    6

    Re: Show column to left of named range when clicking hyperlink

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Any chance you could upload the workbook and explain with a narrative comment exactly what you want to do/select and what you want to happen?
    Hi! I might be able to, but I don't have authorization to release it publically so I would have to sanitize it of any actual data first, which would mean renaming ranges, etc. Would a couple of screenshots help?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Show column to left of named range when clicking hyperlink

    Not really, pictures are rarely much help and are discouraged. We generally prefer to see the problem in the context of its workbook. Just delete all but a representative sample of rows/columns and sanitise what's left then upload the workbook.

  5. #5
    Registered User
    Join Date
    11-20-2014
    Location
    Huntsville, AL
    MS-Off Ver
    MS Office 2007
    Posts
    6

    Re: Show column to left of named range when clicking hyperlink

    Thanks, will do on Friday after the holiday. Thanks!

+ 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. [SOLVED] Dynamic hyperlink with named range as file name?
    By -AJ- in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2014, 06:15 AM
  2. Insert and Show formula with a named range
    By amphinomos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2014, 12:27 PM
  3. Replies: 2
    Last Post: 09-11-2013, 04:35 AM
  4. Replies: 1
    Last Post: 02-23-2013, 05:18 AM
  5. Replies: 0
    Last Post: 08-08-2012, 01:02 PM

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