+ Reply to Thread
Results 1 to 8 of 8

Transfer Data From Userform Textbox to Specific Cell

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Transfer Data From Userform Textbox to Specific Cell

    Hi all

    I was wondering if someone could help me. I have the following code, which passes the value of a textbox to a specific cell on a worksheet using range. However, I would like to amend the code so the range which states the cell is based upon the value of another textbox. So in the below example, the information from Textbox RS1 passes into cell F2 on the 'Inbox Rota' worksheet. What I want is a second textbox, lets call it RS2, which states the cell I want RS1 to post to. For example RS2 states 'A2'. So I want the code below to base which cell on the worksheet it passes the value of RS1 onto based on the value in RS2.

    Please Login or Register  to view this content.
    I hope that makes sense.

    Thanks in advance for your help.
    Last edited by ShakJames; 03-03-2017 at 06:52 AM.

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Transfer Data From Userform Textbox to Specific Cell

    May be
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Transfer Data From Userform Textbox to Specific Cell

    Hi Yasser... thank you for the response. This doesn't seem to quite do the job. It just seems swap the data in the textboxes rather physically posting it the spreadsheet.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Transfer Data From Userform Textbox to Specific Cell

    Can you upload sample of your workbook?

  5. #5
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Transfer Data From Userform Textbox to Specific Cell

    Hi Yasser... sorry not really. There is too much personal data. It would take ages to remove it all. However, if you really need, I can create a duplicate spreadsheet from scratch.

  6. #6
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Transfer Data From Userform Textbox to Specific Cell

    Hi Yasser, Sample spreadsheet now attached.

    Thanks for your help with this.
    Attached Files Attached Files

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Transfer Data From Userform Textbox to Specific Cell

    This code doesn't transfer from the textbox to a cell, it does the opposite by putting the value from F2 on 'Inbox Rota' in RS1.
    Please Login or Register  to view this content.
    If you wanted to put the value from RS1 into a cell based on the value in RS2 the code would look something like this
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  8. #8
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Transfer Data From Userform Textbox to Specific Cell

    Thanks, Norie

    That has worked a treat.

+ 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] Using a Userform to transfer data to individual worksheets in specific columns and rows.
    By Ortz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2016, 07:00 PM
  2. Transfer data from userform to macro in a module, and textbox input as numbers?
    By flabb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2016, 02:25 PM
  3. [SOLVED] Transfer data from userform textbox to spreadsheet
    By markusvirus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2015, 10:11 AM
  4. Transfer listbox and textbox data from userform to spreadsheet
    By NellieNoggs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2014, 02:35 PM
  5. Transfer data from UserForm to Specific Sheet...
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2013, 10:26 PM
  6. Transfer specific data on specific worksheet using userform
    By kriscar_44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2010, 04:03 AM
  7. Find UserForm ComboBox Value (date) & Transfer TextBox Data To Same Row
    By okriskao in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2008, 11:33 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