+ Reply to Thread
Results 1 to 3 of 3

Passing text from sheet to sheet in VBA dosn't work when using a UserForm CommandButton

  1. #1
    Registered User
    Join Date
    02-23-2020
    Location
    Colombia
    MS-Off Ver
    2016
    Posts
    2

    Passing text from sheet to sheet in VBA dosn't work when using a UserForm CommandButton

    I have this code right here and for some reason it doesn't work

    Please Login or Register  to view this content.
    The thing that I'm trying to do is that the macro searches for the same combobox text inside the "Programación" worksheet, if the text is the same then it saves some text categories and pastes them on the "Matriz de Hallazgos" sheet, just like search, look if equal, copy and paste. I would be of great help if you guys could give me some advice
    Last edited by FDibbins; 02-24-2020 at 02:00 AM. Reason: code tags added.

  2. #2
    Registered User
    Join Date
    02-23-2020
    Location
    France
    MS-Off Ver
    2019
    Posts
    44

    Re: Passing text from sheet to sheet in VBA dosn't work when using a UserForm CommandButto

    You wrote:
    ComboBox2.Value = sel
    but sel is not initialized.
    Should it not be:
    sel = ComboBox2.Value

  3. #3
    Registered User
    Join Date
    02-23-2020
    Location
    Colombia
    MS-Off Ver
    2016
    Posts
    2

    Re: Passing text from sheet to sheet in VBA dosn't work when using a UserForm CommandButto

    True, thank you!

+ 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. for each loop dosn't work
    By rhamid6 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-19-2019, 12:46 PM
  2. [SOLVED] Need Help with textbox when passing data to sheet(UserForm)
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-10-2017, 07:43 AM
  3. Making userform with vba, commandbutton does not work
    By matthiej88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-29-2015, 08:34 AM
  4. How Userform Commandbutton actually Save data into excel sheet?
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2014, 11:55 AM
  5. Macro dosn't work next day
    By Dixxon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2008, 05:15 AM
  6. Passing Variable from Sheet to Userform
    By gti_jobert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2006, 05:38 AM
  7. VBA Help, cant figure out why it dosn't work.
    By Michael A in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2006, 11:30 AM

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