+ Reply to Thread
Results 1 to 5 of 5

Save worksheet with a cell refference upon opening workbook

  1. #1
    Registered User
    Join Date
    05-01-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Save worksheet with a cell refference upon opening workbook

    Hello everybody

    Can you tell, how can I make this, saving only "Quote" worksheet in a new workbook with Ref.No. cell value.
    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: Save worksheet with a cell refference upon opening workbook

    Try this:

    Please Login or Register  to view this content.

    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 JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Save worksheet with a cell refference upon opening workbook

    Something like this in standard code module:
    Please Login or Register  to view this content.

    Then in the Sheet1 CommandButton1_Click, add this near the bottom before you reset the quote form:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    05-01-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Save worksheet with a cell refference upon opening workbook

    Quote Originally Posted by JBeaucaire View Post
    Something like this in standard code module:
    Please Login or Register  to view this content.

    Then in the Sheet1 CommandButton1_Click, add this near the bottom before you reset the quote form:
    Please Login or Register  to view this content.
    Hello JB

    This showing Compile Error: Sub or Function not defined.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Save worksheet with a cell refference upon opening workbook

    You may have put the SaveQuote macro in the wrong place? Insert > Module will add a new normal code module, past that first macro in there.

    If it continues to error out, post your wb again so I can verify what you did and where.

+ 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