+ Reply to Thread
Results 1 to 4 of 4

Referring the name of the worksheet from the combobox

  1. #1
    Forum Contributor
    Join Date
    01-18-2017
    Location
    Poznań, Poland
    MS-Off Ver
    2016
    Posts
    139

    Referring the name of the worksheet from the combobox

    Hi!

    I am working on the file in order to create some data from the selected excel file.

    I created a simple program using the User Form function.
    I put the command button that allows me to select a file from my machine.

    Then I want to paste data from the selected file into the worksheet entitled "Raw data " & whatever value I put into combobox named cboMarka.

    Another words:

    when I put into:
    Kraj value Polska
    Marka value KIA

    and after I click into 'Wybierz Plik' I want to paste data from selected file into worksheet Raw Data KIA.

    But then error that constant expression required appears

    Could you please let me know should I make it done?

    Many thanks in advance.

    P.S. The error indicated in the bold below and file attached.



    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Referring the name of the worksheet from the combobox

    Try this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    01-18-2017
    Location
    Poznań, Poland
    MS-Off Ver
    2016
    Posts
    139

    Re: Referring the name of the worksheet from the combobox

    All clear. Thanks.

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Referring the name of the worksheet from the combobox

    Quote Originally Posted by Szwadron6 View Post
    All clear. Thanks.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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] referring to values in a userform combobox as range
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2013, 09:38 AM
  2. referring a worksheet
    By lazmanyak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 06:05 PM
  3. referring a worksheet
    By tired of finding my data scrambled in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 11:05 AM
  4. referring a worksheet
    By tired of finding my data scrambled in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. referring a worksheet
    By lazmanyak in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. referring a worksheet
    By lazmanyak in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. referring a worksheet
    By lazmanyak in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] referring to other worksheet
    By Geetu M in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2005, 05:06 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