+ Reply to Thread
Results 1 to 4 of 4

BeforeClose - Ask for Author's name

Hybrid View

  1. #1
    Registered User
    Join Date
    10-07-2011
    Location
    Beijing
    MS-Off Ver
    Excel 2003
    Posts
    4

    BeforeClose - Ask for Author's name

    Hi,

    for a customer list where many colleagues work in and edit it, I am looking for:
    A function for BeforeClose, the author has to put his/her name manually in a specific cell (C45).

    Appreciate!
    Last edited by dibe111; 10-10-2011 at 03:47 AM.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: BeforeClose - Ask for Author's name

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Registered User
    Join Date
    10-07-2011
    Location
    Beijing
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: BeforeClose - Ask for Author's name

    Edited. Thanks.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: BeforeClose - Ask for Author's name

    In the workbook beforeclose event include this code.Entered name will be put in C45 cell of sheet1.

    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Sheets("Sheet1").Range("C45").Value = InputBox("Enter name")
    End Sub

+ 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