+ Reply to Thread
Results 1 to 4 of 4

I need to modify somebody else's macro/vba project

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Ashford, Kent, UK
    MS-Off Ver
    365
    Posts
    14

    I need to modify somebody else's macro/vba project

    Good morning

    I use the attached file for my work. I have 25 portfolios for each provider (Aegon, Aviva, LV & Scottish Life)

    I got somebody who's more knowledgeable than I am - but who's now off sick - to add the grids at the top and the buttons to the right of the grids, so that we can build the portfolios and keep them stored rather than keep having to go back in each time we need to create a portfolio. Also, there is another spreadsheet that reads from this one.

    My question relates to the Aegon tab. Column H (Jupiter China) I have added this month, by insertion. In the lower parts of the worksheets it works fine but when we hit 'Transfer to Portfolios' it does not upload the data for Jupiter China, neither does it upload the data that is now in Column R (which is new this month because I have inserted Column H).

    I need to know how to extend the range to which 'Transfer to Portfolios' applies, so that it includes columns H & R.

    AllocationSpreadsheet1404.xlsm

    Very many thanks in advance

    Ian Jemmett

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I need to modify somebody else's macro/vba project

    Hi,

    In the
    Please Login or Register  to view this content.
    procedure the Number_Of_Funds variable is hard coded as 16. Since you've added an extra fund there are now 17

    It would be better to change the variable to

    Please Login or Register  to view this content.
    so that the B2:R2 range will expand and count more cells as you add new funds.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    Ashford, Kent, UK
    MS-Off Ver
    365
    Posts
    14

    Re: I need to modify somebody else's macro/vba project

    Thanks Richard. Worked a treat!

    Ian

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I need to modify somebody else's macro/vba project

    Thanks for the rep Ian, and glad I could help.

+ 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. Macro Help - Modify macro to save as to specific location
    By scoochUM in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-30-2014, 04:10 PM
  2. Help to modify a macro
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2013, 05:27 AM
  3. Stop Macro, Check Cells & Modify if Necessary, Resume Macro
    By AccountantCost in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2009, 07:39 AM
  4. Replies: 3
    Last Post: 08-11-2008, 09:21 AM
  5. Can you modify one macro with another
    By creyavaich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2007, 06:45 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