+ Reply to Thread
Results 1 to 9 of 9

Source Formatting Issue

  1. #1
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Source Formatting Issue

    The above macro works perfectly, but when pasting into column I, it loses the formatting. Is it possible to make a change where it doesn't post the formual, only the value (as its currently doing), but keeps the Accounting format with the $ in the appropriate spot. Basically it changes the formatting to currency ($101,000) rather than accounting ($ 101,000).

    Please Login or Register  to view this content.
    Last edited by jharvey87; 03-23-2017 at 01:48 PM.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Source Formatting Issue

    Try adding "$" & before .Cells(I, "L").Value like so..
    Please Login or Register  to view this content.
    Last edited by gmr4evr1; 03-22-2017 at 04:48 PM. Reason: Added & " " to code
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    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,434

    Re: Source Formatting Issue

    Maybe:

    Please Login or Register  to view this content.
    Last edited by TMS; 03-22-2017 at 04:47 PM.
    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


  4. #4
    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,434

    Re: Source Formatting Issue

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

  5. #5
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Re: Source Formatting Issue

    This worked partially. Basically it moved the money, but then the row borders disappeared for some reason. Basically just became white background. Is it possible to have it paste just values in accounting format? Nothing else?

  6. #6
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Re: Source Formatting Issue

    Never mind, i was able to remove the color references and it worked perfectly.

    Thank you!

  7. #7
    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,434

    Re: Source Formatting Issue

    You're welcome.

    I understood that you wanted to retain the formatting. I don't recall the original words but I assumed you wanted all the formatting. And I don't remember you stating that it was Accounting format that was the issue though judging by gmr4eve1’s reply, that might have been there.

    Please don't change/edit the original post. It can, and does, change the context of any responses and can be very confusing.

  8. #8
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Re: Source Formatting Issue

    I did not edit anything in the original post beyond putting [code] around the code as you instructed in your response. That was the only change.

    Either way, thanks for your help!

  9. #9
    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,434

    Re: Source Formatting Issue

    Ah, fair enough. My apologies, my mistake.

    Glad that you were able to adapt the solution.

+ 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. Issue with setting up external data source
    By troyd1 in forum Excel General
    Replies: 3
    Last Post: 02-07-2017, 03:04 PM
  2. Issue with opening source workbook of connection
    By Aule in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-11-2015, 06:53 PM
  3. Issue with data returned from source cell
    By Eisoptrophobia in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-17-2015, 01:49 AM
  4. Excel 2007 : List with dynamic source issue
    By kentwistle in forum Excel General
    Replies: 5
    Last Post: 02-06-2012, 06:06 PM
  5. Issue with finding data source using CurDir
    By Arsi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2011, 03:15 PM
  6. Graph source data series value issue
    By dgarris in forum Excel General
    Replies: 1
    Last Post: 04-24-2007, 10:44 AM
  7. Excel updating source data issue...
    By Dagwood2005 in forum Excel General
    Replies: 1
    Last Post: 02-01-2007, 05:32 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