+ Reply to Thread
Results 1 to 5 of 5

Copy and paste formats/formulas between sheets

  1. #1
    Registered User
    Join Date
    11-24-2009
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Copy and paste formats/formulas between sheets

    Hello,

    I have a need to maintain the format and formulas of a range of cells after user interaction. Users can enter data in the Main sheet and can potentially override formulas and formats. There are several reasosn why I have choosen this user capability and would rather not lock the cells.

    To accomidate this I have a reference sheet with a copy of the range from the Main sheet with the correct formuas and formats.

    This reference sheet contains other reference information and is not formatted very well. As such I prefer to keep it hidden.

    Unfortnately my limited knowledge of VB is forcing me to activate the reference sheet to allow the copy. I then have to activate the Main sheet to allow the paste.

    An example of my sheets and code is included here. Thank you in advance for any direction provided.

    John
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-11-2010
    Location
    India
    MS-Off Ver
    2010
    Posts
    268

    Re: Copy and paste formats/formulas between sheets

    Hi John

    Per my understanding, the code you have written is satisfying your requirements.
    What help are you seeking?

    Thanks
    Ajay

  3. #3
    Registered User
    Join Date
    11-24-2009
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Copy and paste formats/formulas between sheets

    Yes the code I put togther does work. However I want to keep the reference sheet hidden, and would rather not have to select it, making it visible to the users, in order to copy from the source range.

    My request is for assistance in calling a macro from one sheet that copies a range from a second sheet while keeping that source sheet hidden from the user. The paste portion of the code pastes format and formulas.

    I have code that retrieves values from a hidden sheet but not format and formula attributes.

    Thanks,

  4. #4
    Forum Contributor
    Join Date
    03-11-2010
    Location
    India
    MS-Off Ver
    2010
    Posts
    268

    Re: Copy and paste formats/formulas between sheets

    Can you unhide the sheet, copy, and hide the sheet after copying as below?

    Please Login or Register  to view this content.
    Last edited by ajaykgarg; 06-07-2010 at 08:03 AM.

  5. #5
    Registered User
    Join Date
    11-24-2009
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Copy and paste formats/formulas between sheets

    I had considered this and will if it's my only option. The format of the reference sheet is not "user friendly" so I'd prefer to keep it hidden.

+ 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