+ Reply to Thread
Results 1 to 4 of 4

Macro problem X2 on invoice

  1. #1
    Registered User
    Join Date
    04-23-2007
    Posts
    54

    Macro problem X2 on invoice

    I have a timesheet invoice spreatsheet I made with the help of the good people on this site.I have the timesheet and invoice on the same sheet so I can click the copy macro button which copies it,increases the invoice number by 1 and puts it in the same work book together.There is an error however that happens when i copy it more that once.It says (A formula or sheet you want to move or copy contains the name 'day'(day's edays and month also come up if I answer no) and allready exists on destination worksheet and asks me if I want to use this version of the name) I have tried and I cannot figure out what to do about it.I have attached the file in hopes than somebody can help me with this.I also have a macro that I made with te macro recorder that does the following- Unhides my Invoice-selects print area to print-sets to portrait-prints x2 copies-rehides invoice-and then protects it.This works fine but I would like to have it protected before I click the print invoice button to to prevent someone from accidentally deleteing a formula or something.If anybody could or would help me with these two problems I would appreciate it.
    Attached Files Attached Files
    Last edited by benswelding; 05-03-2010 at 07:56 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro problem X2 on invoice

    Can I suggest that you do some basic reading on working with VBA,either internet, a book or search this forum. You workbook is full of empty modules, this is unnecessary & makes it difficult to locate the specific code you want help with. In looking I see that you haven't used the code that I amended for you yesterday nor bothered about declaring variables. You can't expect us to do everything,show some willingness to learn & follow upon suggestions

    Some basic notes in the code would help as well

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    04-23-2007
    Posts
    54

    Re: Macro problem X2 on invoice

    I did use your code just not on that sheet.I shall do more reading . Thanks for your help.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro problem X2 on invoice

    If you used the code why post an example with redundant code?

+ 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