+ Reply to Thread
Results 1 to 4 of 4

VBA code, Named range as Rowsource need to offset -1 column

  1. #1
    Registered User
    Join Date
    08-18-2017
    Location
    Leicester, England
    MS-Off Ver
    Office 2013 & 365
    Posts
    54

    VBA code, Named range as Rowsource need to offset -1 column

    Hi all. New to VBA. I have a userform with comboboxes. The first combobox has a rowsource assigned through properties, on selection it runs an advanced filter. I have named a range from the extraction "WIPHeader" to polulate a second combobox which on selection from this populates some textboxes successfully, however, one of these textboxes calls for data outside of the named range. i.e. the named range is columns G to K, however the data for this textbox is in column F of the extraction from the advance filter. Is it possible to offset the named range back one column? The below column(-1) doesn't work.

    Please Login or Register  to view this content.
    Second combobox:

    Please Login or Register  to view this content.
    Populates textboxes - WIP7 refers to supplier details which is outside the named range "WIPHeader"

    Please Login or Register  to view this content.
    I'm unable to post the workbook at this time as I'm too far into the project with sensitive data.
    Any help would be appreciated.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA code, Named range as Rowsource need to offset -1 column

    I never use the row source property. I find it to restrictive.

    Please Login or Register  to view this content.
    does the job for me.

    but you can then use:

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    08-18-2017
    Location
    Leicester, England
    MS-Off Ver
    Office 2013 & 365
    Posts
    54

    Re: VBA code, Named range as Rowsource need to offset -1 column

    Hi, thank you for taking the time to read my post. I will investigate your suggestion. I'm wondering however, as the second combobox which runs an advance filter that populates the other textboxes, would using list correlate to the data for the selected row in the extract data from this advance filter ? Hope this makes sense.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA code, Named range as Rowsource need to offset -1 column

    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.

+ 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. Forms - Named Range as the RowSource
    By Michael Beckinsale in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-12-2023, 04:33 AM
  2. Set ListBox RowSource to a Offset Dynamic Named Range
    By bunjake in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2017, 12:18 PM
  3. [SOLVED] ListBox rowsource named range offset by 1
    By Taemex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2014, 03:17 AM
  4. Combobox addition to Rowsource in dynamic named range corrupting table
    By BFD in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2014, 11:03 PM
  5. [SOLVED] VBA: UserForm ListBox Column Headings RowSource = Named Range
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 02:21 AM
  6. Named range offset by row
    By Macdave_19 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2008, 11:45 AM
  7. Setting ComboBox.RowSource via Named Range
    By RobertL in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2007, 08:19 PM

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