+ Reply to Thread
Results 1 to 3 of 3

Code to insert fields onto existing worksheet

  1. #1
    Registered User
    Join Date
    08-27-2014
    Location
    UK
    MS-Off Ver
    office 2010
    Posts
    6

    Code to insert fields onto existing worksheet

    Hi...I need some help with vba code please. We get a worksheet each month where columns A to E are populated but the number of rows will vary each month. What I want to do is to run a code which will add another 5 fields (columns G to K - column J is a formula) with the colur formatting in each column.
    As the number of rows will vary I need the correct number of rows to be added to the inserted columns. On the last row I also need to have a total for each column. The user will manually populate the added columns. I'm attaching a sample file to make it easier to understand what I'm after.
    Any help would be appreciated. Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Code to insert fields onto existing worksheet

    range(address).value = value, so
    Please Login or Register  to view this content.
    for example.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    08-27-2014
    Location
    UK
    MS-Off Ver
    office 2010
    Posts
    6

    Re: Code to insert fields onto existing worksheet

    Thanks for your valuable contribution!

    I'm hoping to learn that is why I'm posting a question so I know for next time.

    This may be a simple task for you but it isn't for me.

+ 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. Modifying the code in an existing workbook to add extra Category fields
    By adriantainsh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2014, 09:08 AM
  2. [SOLVED] VBA code to save current worksheet as temporary PDF file and then add to my existing code
    By brianfromla in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-20-2014, 08:35 AM
  3. Add new units to production and insert into existing worksheet
    By adamgrier in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2009, 04:43 PM
  4. Insert existing worksheet into workbook
    By Salomon in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-18-2008, 09:30 PM
  5. Replies: 4
    Last Post: 01-24-2006, 11: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