+ Reply to Thread
Results 1 to 3 of 3

Help with VBA - insert / copy / paste button

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    97

    Help with VBA - insert / copy / paste button

    Hi Gents

    I have a button in the attached in the quote tab that inserts / copys / pastes row 6 in the row below.

    when the button is used it pastes the cells in the wrong places and I can work out why.

    Can someone point out where i am going wrong please.

    thanks

    nelly
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Help with VBA - insert / copy / paste button

    You'd need to use absolute references in your formulae on row 6 - i.e.
    ='Quote Tool'!$H$6
    instead of
    ='Quote Tool'!H6

    Also, I may not be understanding what this does, but as it stands every line will be the same, which doesn't seem right.

  3. #3
    Registered User
    Join Date
    01-14-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: Help with VBA - insert / copy / paste button

    Quote Originally Posted by brokenbiscuits View Post
    You'd need to use absolute references in your formulae on row 6 - i.e.
    ='Quote Tool'!$H$6
    instead of
    ='Quote Tool'!H6
    Thank you, a simple thing but so important.

    [/QUOTE]Also, I may not be understanding what this does, but as it stands every line will be the same, which doesn't seem right.[/QUOTE]

    A very good point that I had not taken into account, I would like the information in row 6 to be frozen after the row has been copied, I have also just realized that the macro would need to copy the next row down each time rather than row 6 each time.

    any help please as my VBA knowledge is still at the beginners stage

    Thanks

    nelly

+ 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. Replies: 30
    Last Post: 11-06-2013, 12:43 PM
  2. copy/insert button
    By RorschachDK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2013, 03:01 AM
  3. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  4. Comand button to insert new row and copy formulas only
    By ir_eddie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2012, 06:14 AM
  5. Copy to clipboard button on / paste special button.
    By jasonmcbride in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-19-2008, 11:53 AM

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