Consulting

Results 1 to 4 of 4

Thread: Stuck with macros

  1. #1
    VBAX Newbie
    Joined
    Mar 2012
    Posts
    2
    Location

    Stuck with macros

    I am trying to create a macro which will insert or delete a row in a worksheet with the same characteristics as the contents of the row before, and then automatically update any worksheets linked to the first one! Does anyone have a solution, please?

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Quote Originally Posted by Dakamama
    I am trying to create a macro which will insert or delete a row in a worksheet with the same characteristics as the contents of the row before, and then automatically update any worksheets linked to the first one! Does anyone have a solution, please?
    Insert or Delete a row? and, is the match to be based on a particular column value or the whole row?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    VBAX Newbie
    Joined
    Mar 2012
    Posts
    2
    Location
    Thanks for the reply Aussiebear.

    Basically, I'm trying to design a budgeting template which has the following numbered logframe:
    Goal
    1 Objective
    1.1 Strategy
    1.1.1 Main Activity
    1.1.1.1 Subactivity
    2 Objective
    2.1 Strategy
    2.1.1 Main Activity
    2.1.1.1 Subactivity

    and so on, depending on how many objectives are required by the user. It is not possible to predetermine how many objectives, strategies, main activities and subactivities each objctive would have, so I have been considering automating the function of inserting a row for each additional objective, strategy, main activity and subactivity (after defining the first ones) which automatically insert the next activity number in the sequence and also insert a similar row in the right place in the related costing worksheet. Deleting a row would also have a similar effect on the related worksheet.

  4. #4
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Then my advice to is this, please attach a sample workbook by selecting Go Advanced, scroll down to Manage Attachments and follow the prompts from there. Make sure that the workbook has a before and after examples, and clearly define what triggers a row insert or deletion.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •