Consulting

Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 41 to 60 of 69

Thread: How to set currency with different starting values

  1. #41
    How would I hide sheet "prcbook"?

  2. #42
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
        Worksheets("prcbook").Visible = False
    Semper in excretia sumus; solum profundum variat.

  3. #43
    haha, I had it close, I just spelled "Visible" incorrectly!

    Something I just noticed is that somehow the formula on the completed sheet has added info to the formula in reference to the sheet location but that's not in the original formula

  4. #44
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    time for sleep now, it's 4:30am here
    Semper in excretia sumus; solum profundum variat.

  5. #45
    No worries, completely understand! I'll talk with you tomorrow!

  6. #46
    Ok, so working on the last WorkBook the BlankQuote, when it copies the page from the workbook "BlankQuote" it's coping over a Vlookupformula and when it copies and pastes the formula it changes the reference from Sheet2 to #REF in the actual formula.

    Would the easier fix be instead of coping the Vlookup code into pricebook, coping the Prcbook into Sheet2 of the BankQuote Form and then have it resave that output?

  7. #47
    Also Updated the BlankQuote it was pulling from.

    BlankQuote.xlsx
    Attached Files Attached Files
    Last edited by GillsITWorld; 05-01-2020 at 11:06 AM.

  8. #48
    I guess what Im looking for is

    How to Copy Exact VLookup Formula in VBA without changing the cell reference?

  9. #49
    I believe this is all happening because of the Vlookup on Sheet1 referencing Sheet 2, when trying to move it between workbooks it wants to update the links and it's causing a problem.
    Last edited by GillsITWorld; 05-01-2020 at 11:32 AM.

  10. #50
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Hmmm... Where is the data held for the vlookup?
    Semper in excretia sumus; solum profundum variat.

  11. #51
    Thats coming from the prcbook, it should all be on sheet2 be the end of it

    Sheet1 should be the QuoteForm (Labeled Sheet1)
    Sheet2 should be the PrcBook (Labeled Sheet2)

  12. #52
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Rushed a bit, but try this
    Attached Files Attached Files
    Semper in excretia sumus; solum profundum variat.

  13. #53
    Ok, so now it seems to be having a problem with there being 2 sheets named "Sheet2"

    Run-Time Error '1004':
    That name is already taken. Try a different one.

  14. #54
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Get rid of your sheet2 in the blankquote. I haven't seen that sheet but I guess then you will get your ref! back! I'd run with giving them a blank quote sheet (with no formula) for this Sunday, let's take a look next week. If you send me a working copy of the blankquote (ie with two sheets and vlookup working) I can take a look over the weekend.
    Semper in excretia sumus; solum profundum variat.

  15. #55
    This one with formulas won't go out this Sunday, just the other 2 PriceBooks we worked on.


    Below are the attachments

    BlankQuote.xlsx
    PRCBOOK.csv
    QuoteSheet.xlsm

    Again, thank you for ALL the support you have given me!

  16. #56
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    No worries! Have a good, and safe, weekend. We are about to have a 'Zoom' drinks party with a load of friends... if you can't join them, beat them!
    Semper in excretia sumus; solum profundum variat.

  17. #57
    Awesome! You as well, be safe in this crazy world and have a great weekend!

    I'm also available all weekend if you have any other questions!

  18. #58
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Ok, I think I've sorted it.

    Operation:

    Schedular opens QuoteSheet.xlsm which then
    Opens PrcBook.csv
    Re-calculates prices, removes unwanted columns and formats text (do you need to format the text?)
    Opens BlankQuote.xlsx
    Copies the modified PrcBook to Sheet2 in BlankQuote
    Saves BlankQuote with data and time stamp
    Closes BlankQuote
    Closes PrcBook without saving changes (keeps it intact for any other process)
    Quits Excel

    I took the liberty of making the following changes to the BlankQuote, please feel free to change to whatever you really want!

    Changed the formula so that it is a blank form unless an item is entered or there is an error
    Put the average value of the percentages at the bottom of the column
    Locked all cells apart from the Item # and Competitors columns and the Contact info. (added a line "Additional Info:" which is also unlocked)

    All seems to be fine and dandy, but let me know if you need any further assistance.

    Cheers and stay safe
    BlankQuote.xlsx
    QuoteSheet.xlsm
    Semper in excretia sumus; solum profundum variat.

  19. #59
    Ok, so Im not sure if this is copying the actual prcbook to page 2, any time you try and put an item number in it comes up item not found.

    Then when it saves Blankquote with date and time stamp its saving only the prcbook to this workbook.

    Then Blankquote just looks like it has the quote form without the prcbook.
    Last edited by GillsITWorld; 05-02-2020 at 10:37 AM.

  20. #60
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    I just tried it again and no problems, see attached.

    What's on sheet2? It should be the modified csv file like in the attached.
    Attached Files Attached Files
    Semper in excretia sumus; solum profundum variat.

Posting Permissions

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