+ Reply to Thread
Results 1 to 4 of 4

Code that adds row, based on user input?

  1. #1
    Registered User
    Join Date
    01-21-2011
    Location
    Maidenhead/Sheffield
    MS-Off Ver
    Excel 2003
    Posts
    57

    Code that adds row, based on user input?

    Hi guys,

    My title is possibly making this sound more simple than it is, as i've spent 2 days researching coding and having a go my self to no avail

    I won't try to explain my self, as I feel the example attached speaks for its self.

    If someone could advise exactly what I need to be looking for, or write me the code so I can mess with it, I would be eternally greatful!

    Thanks
    Luke
    Attached Files Attached Files

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Code that adds row, based on user input?

    How about naming the cells with Total Expenditure etc in them as named ranges. You could then just use offset/resize to insert cells as you like relative to them.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Code that adds row, based on user input?

    Had a play with this during my break. See attached...

    Dom
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-21-2011
    Location
    Maidenhead/Sheffield
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: Code that adds row, based on user input?

    Dom - I can't thank you enough thats exactly what I was after. Thanks again.

+ 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