+ Reply to Thread
Results 1 to 3 of 3

Insert row: entered value in columnB copied into another worksheet.

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Insert row: entered value in columnB copied into another worksheet.

    Hi,

    I have created a button called "Insert line". When this is clicked, it inserts a row in the same work sheet and in a different work sheet Column E is coped to the next empty colum( ie Column E get coppied into F then to G, H, I when the button is clicked). This part is working.

    What I now want to do is whatever value I entered in column B of the newly inserted row, I want this to be copied into the other worksheets copy-paseted columns row 5. (ie. Say I clicked the button and Row 6 is inserted, If i enter "Site A" in B6, then I want "Site A" to appear in the column I created in the other work sheet eg "F5". when I click the buton again, now Row 7 is inserted. So i enter "Site B". I want this to be copied into other worksheets F6.

    This is the code I have

    Please Login or Register  to view this content.
    Any help is much appriciated.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Insert row: entered value in columnB copied into another worksheet.

    Hi tharindudk,

    It is very difficult to visualise what you are trying to do without seeing your workbook.

    This is further complicated by the fact that you are grabbing some data from another workbook.

    It seems to me that you want to enter something into the newly created row.

    I think you need to have something like cells(5,6) = ActiveCell.FormulaR1C1 = "=Sheet1!R[1]C[-4]"

    This will cause the value in Sheet1!B6 to appear in F5. (F5 will have the formula =Sheet1!B6

    I hope this helps!

    David


    Please remember, your request is clearer if you attach a sample workbook.
    - Click on Go Advanced and click on the Paper Clip.
    When you reply please make it clear WHO you are responding to by mentioning their name.
    If this has been of assistance, please advise. A little thanks goes a long way.
    - Please click on the *Add Reputation button at the bottom of helpful responses.
    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

  3. #3
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Insert row: entered value in columnB copied into another worksheet.

    Hi,

    Test1.xlsm

    I have attached a template.

    If you click the button "Insert Store" in sheet 1. It creates a new row and manualy need to enter Store Name in column B. Eg B6 you Enter "Melbourne"

    At the same time, a column was copied and created in sheet 2. Here the columns start from F and you can see F4 is named as F4. I want this to be changed as the name entered in B6 - Melbourne.

    When again the button is created, B7 is created and when user name it, i want G4 to change the Store name to that. this should happen every time a user click that button.

    Any help is appriciated.

+ 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. if a value is entered in to a cell, the row is copied to a new spreadsheet
    By nmusashe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2013, 04:52 AM
  2. Copying multiple worksheet so that copied hyperlinks link to new copied sheets
    By chrisjames25 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2013, 02:37 PM
  3. Lock next cells of a row when entered "YES" in cell columnB (from B2 onwards)
    By venupendem in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-31-2012, 07:53 AM
  4. [SOLVED] Formula only being entered into one cell, not being copied down entire column
    By csh8428 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-26-2012, 10:43 AM
  5. Replies: 3
    Last Post: 10-25-2012, 07:10 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