+ Reply to Thread
Results 1 to 5 of 5

Question on selecting sheet with user input

  1. #1
    Registered User
    Join Date
    09-30-2019
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    72

    Question on selecting sheet with user input

    Hi everyone,

    I have this macro that works perfectly basically. This sheet takes columns from one sheet and pastes them into another sheet. I want it to be very dynamic, hence the input boxes. Basically, I want to be able to take out 2 of the input boxes and just use the header row input to also find the worksheet name. So, they would only be asked where the headers are in the sheet and then basically the macro would know the sourcesheet and targetsheet already. Thanks in advance!

    Please Login or Register  to view this content.
    Edit: I tried using the HeaderRowS and headerrowT variables in place of the initial input boxes but this gives me an error.
    Last edited by armando12345; 10-03-2019 at 02:24 PM.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb

    Hi,

    as the Parent property returns the worksheet object where a range stands …

  3. #3
    Registered User
    Join Date
    09-30-2019
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    72

    Re: Question on selecting sheet with user input

    Quote Originally Posted by Marc L View Post
    Hi,

    as the Parent property returns the worksheet object where a range stands …
    I don't really understand what you're trying to say

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Question on selecting sheet with user input


    So see the explanation for Range.Parent property in the VBA help …

  5. #5
    Registered User
    Join Date
    09-30-2019
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    72

    Re: Question on selecting sheet with user input

    Quote Originally Posted by Marc L View Post

    So see the explanation for Range.Parent property in the VBA help …
    Right. I know how that works. My main issue is that I get an error whenever I try to change the code. I want to get to a point where I can do HeaderowS.worksheet.name and the macro will work.

+ 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 Question: User Form and input masks
    By MarianneR in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2014, 03:37 AM
  2. Selecting Higher/Lower Value based on User Input
    By FTN in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 06-14-2011, 10:31 AM
  3. Selecting and aggregating data using user input radius
    By Fureak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2010, 06:38 PM
  4. Selecting Worksheet based on User Input.
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-25-2010, 01:58 PM
  5. Selecting Data Based on User Input
    By famousp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2009, 04:16 PM
  6. Time question-able to have a user input
    By anwittin in forum Excel General
    Replies: 2
    Last Post: 11-03-2006, 04:48 PM
  7. [SOLVED] user input question
    By BLW in forum Excel General
    Replies: 2
    Last Post: 05-23-2005, 04:06 PM
  8. Selecting a cell from user input
    By Taff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2005, 02:25 AM

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