+ Reply to Thread
Results 1 to 14 of 14

Hidden field with text, number, to show there is something in field

  1. #1
    Registered User
    Join Date
    09-09-2014
    Location
    birmingham, england
    MS-Off Ver
    2010
    Posts
    8

    Hidden field with text, number, to show there is something in field

    Hi all,

    new to this forum

    Basically we work with excell spreadsheets a lot when it comes to paying employees

    this is done by our staff at the moment there inst much privacy when it comes to displaying salaries wage etc in each cell

    what i have come across recently is the right click, format cells, custom and then 3*;.....this is all well and good but in a very large spreadsheet it is possible (even if it is evenly spaced out in rows and column) to forget which cells you have hidden etc, now to work around i was thinking what if the cell had a number 1 in there or a hashtag, or something still insignificant to the eye but once its clicked on you can see the true value of the cell in the formula bar.

    i understand we will not be able to do this via excell standard functions however if there is some VBA anyone can help me with that would be really helpful

    Thanks

    Bilal

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Hidden field with text, number, to show there is something in field

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

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    09-09-2014
    Location
    birmingham, england
    MS-Off Ver
    2010
    Posts
    8

    Re: Hidden field with text, number, to show there is something in field

    Sorry for the stupid question but is that a macro, formula or vba?

    Also do i have to use them both together or can i just use one of them

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Hidden field with text, number, to show there is something in field

    Macro's are VBA, its VBA.

    They are both different, one sets the hidden up, the other unhides them.

  5. #5
    Registered User
    Join Date
    09-09-2014
    Location
    birmingham, england
    MS-Off Ver
    2010
    Posts
    8

    Re: Hidden field with text, number, to show there is something in field

    ive created a maqcro called test and put both pieces of code, first one first and second one next i.e. before close and open

    im getting an error; the following features cannot be saved in macro free workbooks; VB Project .....

    and its basically telling me to save the file using macro enabled file types..

    what would the file type be

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Hidden field with text, number, to show there is something in field

    No, they are workbook open and close, so on open hide, on close unhide

    they need to be in the thisworkbook

  7. #7
    Registered User
    Join Date
    09-09-2014
    Location
    birmingham, england
    MS-Off Ver
    2010
    Posts
    8

    Re: Hidden field with text, number, to show there is something in field

    Ive added an attachment, this is a test im trying to get it to work on, is it possible when youre free that you get it to work so that the 87's you see get replaced with a symbol until theyre clicked on.

    Thanks

    Warm regards

    Bilal
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-09-2014
    Location
    birmingham, england
    MS-Off Ver
    2010
    Posts
    8

    Re: Hidden field with text, number, to show there is something in field

    Also does, 'ThisWorkbook.Worksheets' need to be changed to the name of my file?

  9. #9
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Hidden field with text, number, to show there is something in field

    You havent put them in thisworkbook
    No, they are workbook open and close, so on open hide, on close unhide

    they need to be in the thisworkbook

  10. #10
    Registered User
    Join Date
    09-09-2014
    Location
    birmingham, england
    MS-Off Ver
    2010
    Posts
    8

    Re: Hidden field with text, number, to show there is something in field

    Ok ive put it into 'thisworkbook' on the top left of the coding window under VBA projects

    and ive also changed the range from "e1-e4" because thats what i want to test on.

    I've saved it, tried running the macro, but nothing

  11. #11
    Registered User
    Join Date
    09-09-2014
    Location
    birmingham, england
    MS-Off Ver
    2010
    Posts
    8

    Re: Hidden field with text, number, to show there is something in field

    Should there be some kind of onclick event also?

  12. #12
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Hidden field with text, number, to show there is something in field

    Its on the Workbook_OPen event, so you need to save it, and re-open.

  13. #13
    Registered User
    Join Date
    09-09-2014
    Location
    birmingham, england
    MS-Off Ver
    2010
    Posts
    8

    Re: Hidden field with text, number, to show there is something in field

    Ahhh it works,however the same problem still stands, the field is still empty i would like the field to have a symbol, character, or a hashtag until i click on it which will then in turn show me the true value in the field.

    Thanks again

  14. #14
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Hidden field with text, number, to show there is something in field

    Change the formatting then in the code.

+ 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: 3
    Last Post: 07-22-2014, 04:23 PM
  2. Change an existing field to a calculated field using Show Values as
    By Excel_vba in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-16-2012, 01:50 PM
  3. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  4. Replies: 3
    Last Post: 03-03-2012, 12:16 PM
  5. [SOLVED] how do i show text in the data field of a pivot table?
    By pum75 in forum Excel General
    Replies: 1
    Last Post: 11-16-2005, 05:10 PM

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