+ Reply to Thread
Results 1 to 5 of 5

Use of inputbox to create variables

  1. #1
    Registered User
    Join Date
    09-16-2012
    Location
    Wokingham
    MS-Off Ver
    Excel 2010
    Posts
    3

    Use of inputbox to create variables

    I have been trying to enter the names of sheets and worksheets by use of intputbox here is the code i have used. When i type the name (sheet) into the code manually it works when i use the inputbox it doesn't, any ideas why. I have commented out one of the variables (subject) so that i can just look at what happens with one of them. I will try to get a dumy sheet but it is hard as all the data is confidential.

    The error i get is a run time error 1004 and application defined or bject defined error

    Please Login or Register  to view this content.
    Last edited by jrawli; 09-27-2012 at 06:50 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Use of inputbox to create variables

    Hi jrawli,

    Please share a workbook with dummy data to understand your issue better. And please put your codes with code tags, as per the forum rules.

    Regards,
    Sindhu

  3. #3
    Registered User
    Join Date
    09-16-2012
    Location
    Wokingham
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Use of inputbox to create variables

    Thanks for you post Sindhus by creating a duymmy set of data i was able to see my mistake! ( I had locked out some columns on one of the sheets so was not able to compare the right ranges.)

    I have now sorted my code and came up with this lot of code, which has some extras! It will ask you to click on the cell in a sheet to gain the sheet name. It then asks what other workbook you want to compare with and then the column number. It then updates any cells that are different to the other worksheet.

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Use of inputbox to create variables

    Hi Jwarli,

    If you are query is resolved, you make this thread as solved.

    Regards,
    Sindhu

  5. #5
    Registered User
    Join Date
    09-16-2012
    Location
    Wokingham
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Use of inputbox to create variables

    Took a few mins to find the thread as solved button. I did look when i made my last post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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