+ Reply to Thread
Results 1 to 5 of 5

Can't display contents of another cell EXACTLY as they appear on original

  1. #1
    Registered User
    Join Date
    02-02-2022
    Location
    Vegas
    MS-Off Ver
    Office 365
    Posts
    51

    Can't display contents of another cell EXACTLY as they appear on original

    I have a code that takes the data from a cell on one sheet and copies it to another cell on another sheet.

    The original cell does have a formula that reads:
    =IF(D4="Shuffle",D4,"$" & IF(E4="",TEXT(D4,"0.00"),D4 & " - "& E4))

    I don't think the formula should matter though.

    The contents of the cell display correctly on this sheet. For instance, one cell (L3) displays $20, which is how it CORRECTLY SHOULD LOOK.

    I run a macro to take the data and display it in another cell on another sheet.

    Please Login or Register  to view this content.
    However, on the new sheet, the transfered cell now displays as "$30 - 0" instead of "$30"

    I've tried modifying my code so instead of .value, it is .text or .value2 but couldn't get the cell to transfer correctly.

    All cells are formatted with a GENERAL display.

    Any idea how to make the destination cell read EXACTLY as the original?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Can't display contents of another cell EXACTLY as they appear on original

    Maybe check the format of the destination cell.


    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-02-2022
    Location
    Vegas
    MS-Off Ver
    Office 365
    Posts
    51

    Re: Can't display contents of another cell EXACTLY as they appear on original

    I understand. I have been trying to create the issue on a sample workbook but cannot recreate the issue. When I copy just the pages I'm working with to another workbook and run the same code, I don't get the problem

    I would send the original but it is so big and has so much confidential information, it would be so hard to just trim it.

    Its so confusing. I guess I was hoping there was just some obvious issue I was missing. I will keep trying to duplicate the issue.

    Thank you.

  4. #4
    Registered User
    Join Date
    02-02-2022
    Location
    Vegas
    MS-Off Ver
    Office 365
    Posts
    51

    Re: Can't display contents of another cell EXACTLY as they appear on original

    I found my problem. So if anyone has an issue like this again, here is the problem I had.

    Elsewhere in my code I had this line:
    Please Login or Register  to view this content.
    I had turned it to Manual prior to running my codes with the intention of speeding up the process. However this is where the problem was, because as soon as I changed it to the below code, it all worked perfectly.

    Please Login or Register  to view this content.
    Thanks again for everyones help.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Can't display contents of another cell EXACTLY as they appear on original

    You're welcome. . Glad you worked it out. Thanks for sharing.

+ 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: 08-31-2019, 11:36 AM
  2. Replies: 3
    Last Post: 06-29-2015, 03:03 PM
  3. Replies: 1
    Last Post: 01-14-2013, 10:35 PM
  4. Replies: 2
    Last Post: 02-22-2012, 11:12 AM
  5. VBA - Insert row, copy contents of original row except for contents of column A
    By Royzer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2012, 07:41 PM
  6. Replies: 3
    Last Post: 11-28-2011, 03:08 PM
  7. Display cell color from original data in pivot table
    By Shadmani in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 07-08-2009, 01:34 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