+ Reply to Thread
Results 1 to 4 of 4

Insertion/deletion of columns, via VBA, depending on variables

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-01-2010
    Location
    United States, Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    116

    Insertion/deletion of columns, via VBA, depending on variables

    I have two worksheets in a cost estimate workbook that represent unit acquisitions. The first sheet is a continuous in/out life cycle over 20yrs. The second is a worksheet that displays a single unit life cycle, without any further purchases.

    My dilemma is that I have only 10 fiscal year columns allotted to my second worksheet. To properly display this page, I regularly must add or subtract columns to show one full acquisition life cycle.

    I have attached a dummy workbook to better express what I need/have, in a very simplistic manner. If you have any further questions please do not hesitate to ask.

    Thank you for your help in advance, and as always I will bump reputations to those of you that can help me out!

    Regards

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Insertion/deletion of columns, via VBA, depending on variables

    There is no sample workbook attached and you mention nothing about the variables to be used to determine which columns get inserted or deleted.

    Post the workbook and provide a clearer explanation and sufficient details to understand what you want to achieve and a solution will be provided.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Contributor
    Join Date
    07-01-2010
    Location
    United States, Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Insertion/deletion of columns, via VBA, depending on variables

    Sorry for not posting.

    If you see the worksheet, you will have a better understanding of what is needed. The variables are B3 & B4 (Year and Life Cycle) respectively.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-01-2010
    Location
    United States, Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Insertion/deletion of columns, via VBA, depending on variables

    Bump thread

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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