+ Reply to Thread
Results 1 to 6 of 6

Referencing Form One Worsheet Into Another - Visible Cells Only

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Referencing Form One Worsheet Into Another - Visible Cells Only

    I've been searching for something that might help me on this without any luck. I have a bunch of data in a worksheet I call "Planning". It has about 10 columns and more than 100 rows and expanding. This is where I do all filtering depending on the report needed.

    I want to create a separate worksheet that references all visible data from "Planning" into a "Task Monitoring worksheet". I want this "Task Monitoring" worksheet to have only visible rows as is and not the hidden information being filtered.

    Is this possible?

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Referencing Form One Worsheet Into Another - Visible Cells Only

    Hi, element2013,

    if you set up your worksheet with headers, a criteria range and the heading for the output you could use the Advanced Filter without VBA (headings must be identical for the data set in all three ranges).

    The other way might be to use the Worksheet_Activate-event for the sheet Task Monitoring worksheet, right-click on that tab and choose View code, code goes into code window which opens:
    Please Login or Register  to view this content.
    If you data doesnīt start in A1 please adjust (as well as the name of the worksheet if needed).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    01-18-2013
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Referencing Form One Worsheet Into Another - Visible Cells Only

    This is what I have so far. I used the code from HaHoBe and it works. I have this other tab called "Reporting" (See Attachment). All the outstanding tasks populate from the "Task Monitoring" tab which feeds from "Planning." However, whenever I filter individual task owners or Project Tasks, that information does not populate into the "Reporting" tab.

    Any ideas on why it is doing this?
    Attached Files Attached Files

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Referencing Form One Worsheet Into Another - Visible Cells Only

    Hi, element2013,

    get the last visible row on Sheet Task Monitoring" in Column B, build a range on that information and copy the data (the copying is not included here but Iīm sure you can work that out on your own):
    Please Login or Register  to view this content.
    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    01-18-2013
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Referencing Form One Worsheet Into Another - Visible Cells Only

    I'm still getting the same problem. I'm not sure if I understand how to use the second code. Keep in mind that I will constantly be adding data to the "Planning" sheet. The "Task Monitoring" sheet will always be different depending on what I filter.

    Thanks in advance for any additional help with this problem!

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Referencing Form One Worsheet Into Another - Visible Cells Only

    Hi, element2013,

    the fitering from Planning to Task Monitoring should do okay but Iīm sorry I think I didnīt get the requirement for the data transfer from Planning to Reporting correctly. Do you want the fitered data from Planning to be shown or any new data which isnīt present in Reporting? I suggested the code because I thought that the data to be transferred isnīt within a continuous range (maybe Iīve got that all wrong,cCould you please clarify for me? Thanks).

    Ciao,
    Holger

+ 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