+ Reply to Thread
Results 1 to 25 of 25

Author Name Referencing

  1. #1
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Author Name Referencing

    Hello Team,

    Please assist me with a formula to auto fix the Author Name (Column G) once entry is made in Column B (Colour) on each row.

    This is to track the entries made per user account.

    Need a formula.xlsx

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,888

    Re: Author Name Referencing

    I think, if this is possible, it will require VBA. Shall I move the thread for you?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    Please how do you mean by move?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,888

    Re: Author Name Referencing

    You posted in the Formulas & Functions section - I have moved it to the VBA section. You don't need to do anything - keep posting in this thread.

  5. #5
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    Ohk, thank you Ali.

  6. #6
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,223

    Re: Author Name Referencing

    Does it mean that each color is assigned a specific Author Name? If yes, where is the list of color assignments to Authors Name?

    Artik

  7. #7
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    Artik, the file is on one-driver for multiple users to access, so want to know who made the entry per each row, by the number of colours received and sold.

    The colour is not assigned to any specific Author.
    The colours are the items received and sold.

  8. #8
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Author Name Referencing

    If the OP requires that the workbook current author is automatically added to the appropriate cell in column G whenever a cell in column B is changed, the following code would work:

    Please Login or Register  to view this content.
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  9. #9
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    Deadlyduck, am getting below Macro name pop up when I run it.


    Attachment 856822

  10. #10
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Author Name Referencing

    The attachment is described as invalid so I can't see the nature of the error.

    I'm attaching the workbook with the VBA code included, so hopefully it will work when you download it. You may need to 'unblock' it- see the instructions in my signature at the base of this post to learn how that's done.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    Still having the same error message
    check below attached.

    Attachment 856840

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,888

    Re: Author Name Referencing

    Your attachment is invalid. Please attach it using the attachment instructions in the yellow banner at the top of the page.

  13. #13
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    Have attached the error message again, see if you can access it.

    Macro Name is needed to be able to run the VBA
    Attached Images Attached Images

  14. #14
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Author Name Referencing

    Did you download the workbook I uploaded on post 10? All that needs to be done for the current user's name to be added is that a cell in column B is changed using the dropdown options- the relevant code is already included in the 'Data(2)'s worksheet module. The macro is run on an 'Event procedure' (change of a cell value in the sheet) so there's no other macro in the workbook.

  15. #15
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    Yes, I have downloaded it but nothing happens in column G if new update is made in column B.

    Check the attached.
    Attached Files Attached Files

  16. #16
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Author Name Referencing

    When you open the workbook, do you see a message displayed just beneath the ribbon (something like 'Enable content')? You need to allow macros to run for the code to be activated.
    The code is working for me when I make a change.

    Also- be aware that no macros will work in Excel online, so if you are using that to edit the workbook, nothing would happen. The only way any macro would work is if you download the workbook to the desktop and open it in Excel that way. There maybe someone who can assist with OfficeScript code which might be usable in Excel online but I don't have any skills in that, I'm afraid.

  17. #17
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Author Name Referencing

    The population in column G when column B is changed works for me but the name populated is yours, not mine.

    Untested in a shared environment but maybe something like this.

    Please Login or Register  to view this content.
    Last edited by ByteMarks; 01-24-2024 at 08:38 AM.

  18. #18
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    Hi ByteMarks,



    The code provided is working but kindly re-write the code to suit the columns for the attached file.

    The Author Name is now (Column A) and the Colour is (Column F).

    Thank you.
    Attached Files Attached Files

  19. #19
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Author Name Referencing

    Sure. Here you go.

    Please Login or Register  to view this content.

  20. #20
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    @ByteMarks,

    Please test the file again and share with me.

    Have copied and paste but not working.

  21. #21
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Author Name Referencing

    Here you go.
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    @ByteMarks, @deadlyduck & @AliGW

    Thank you all for your support.
    Really appreciate.

    Best Regards.

  23. #23
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    @ByteMarks,

    Have notice that if I insect a row at the top of the header (above the header), the code stops functioning.
    Can you please check and re-write the code for the row.

  24. #24
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Author Name Referencing

    The reason is that it's identifying the colour column by looking for the heading "COLOUR" in row 1
    You can change the 1 to whatever row the header is on.
    Please Login or Register  to view this content.

  25. #25
    Registered User
    Join Date
    11-19-2019
    Location
    Ghana, Tema
    MS-Off Ver
    office 365
    Posts
    30

    Re: Author Name Referencing

    It is fine now.
    Thank you.

    Best Regards.

+ 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: 2
    Last Post: 12-31-2023, 01:39 PM
  2. [SOLVED] LastSaved & Last Author !
    By sonu1975 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2015, 03:13 AM
  3. BeforeClose - Ask for Author's name
    By dibe111 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2011, 06:19 AM
  4. Author Name Encryption
    By Sleeper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2009, 07:58 AM
  5. changing author name
    By stevesunfold in forum Excel General
    Replies: 1
    Last Post: 10-25-2008, 12:56 PM
  6. Comments Author?
    By Dav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2006, 06:50 PM
  7. print author
    By jiwolf in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2006, 04:30 PM

Tags for this Thread

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