+ Reply to Thread
Results 1 to 7 of 7

VBA to move specific cell to a table in another worksheet

  1. #1
    Registered User
    Join Date
    02-14-2013
    Location
    wales
    MS-Off Ver
    Excel 2010
    Posts
    64

    VBA to move specific cell to a table in another worksheet

    I have a workbook where sheet 1 is a form where fields need to be completed before allow the auto save and rename and email to multiple recipients. I now want to go a step further and move these cells into a table in sheet 2 where it looks up and aligns all the data against the number in cell M11.
    Basically it is a form on sheet 1 and then a record of that data in sheet 2. I will then clear out the form ready to start with the next one.

    I will manually populate Column A on sheet 2 with the numbers

    Attached is the file hopefully someone can help unless I have confused all of you

    many thanks
    Attached Files Attached Files
    Last edited by markharris2004; 07-01-2014 at 03:49 PM. Reason: upload attachment

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: VBA to move specific cell to a table in another worksheet

    I changed your IF Statement format a bit, I hope you don't mind...I think it works the way you asked...I put a hook in there that if the data isn't there it deletes that row of data so there will be a fresh row of data....hope that make sense....
    Attached Files Attached Files
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: VBA to move specific cell to a table in another worksheet

    did this help?

  4. #4
    Registered User
    Join Date
    02-14-2013
    Location
    wales
    MS-Off Ver
    Excel 2010
    Posts
    64

    Talking Re: VBA to move specific cell to a table in another worksheet

    Many thanks, works perfectly. I have made some changes to the text fields added. I just need a liitle more help.

    Stages A & B are completed straight away so only these fields need to be checked that not blank and copied across. It could be a few weeks before stage C is closed off. Is there a way of looking at the number at the top and then overwriting on that row of data rather than creating a new line. I then will sort sheet 2 by numerical order so the next person requesting picks the next available number.

    Also is there a way then to copy sheet 1 to a new workbook, save and rename which I can then auto email? Am I being cheeky now?

    Attached is the revised code and thank you again
    Attached Files Attached Files

  5. #5
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: VBA to move specific cell to a table in another worksheet

    yes, you are being a bit cheeky....fortunately I love British Humour.....(The IT Crowd was one of my favorites).....I created a loop that looks for the number and if it doesn't find it it uses last row....if it finds it, it overwrites to data...there is a way to xfer data to a new workbook and save it....unfortunately I just got handed a project that I have get done....you can search in this forum or else where on how to do
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-14-2013
    Location
    wales
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: VBA to move specific cell to a table in another worksheet

    Awesome - Thank You

  7. #7
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: VBA to move specific cell to a table in another worksheet

    no prob....glad I could help and thanks for the points....

+ 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] Move to a worksheet continaing a value in a specific cell on a header page
    By robin hasling in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-15-2013, 01:16 PM
  2. Move row with specific value in a column to another worksheet
    By kornstalker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-26-2013, 12:50 PM
  3. Replies: 5
    Last Post: 05-01-2012, 04:02 PM
  4. How to move specific data from one worksheet to another worksheet
    By treeskin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2007, 02:59 AM
  5. How to move specific data from one worksheet to another worksheet
    By treeskin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2007, 08:53 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