Results 1 to 4 of 4

Referring the name of the worksheet from the combobox

Threaded View

  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.



    Const shRaw As String = "Raw data " & cboMarka.Value
     Const shImport As String = "luty"
    Attached Files Attached Files

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