+ Reply to Thread
Results 1 to 2 of 2

Paste number from EXCEL to WORD and retain formatting

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    gemestio are
    MS-Off Ver
    Excel 2010
    Posts
    53

    Paste number from EXCEL to WORD and retain formatting

    Guys,

    I am importing a data table from Excel into word. All works well except for the first column of my data, which contains numbers formatted as currency. I am using a bunch of loops to transfer the data into word, and for each cell the code looks like this:

    Please Login or Register  to view this content.
    Is there a way to tweak the code and preserve the formatting when I am importing numbers into word?

    I tried the following code but it gives me type mismatch error:

    Please Login or Register  to view this content.
    Thanks,

    D.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Paste number from EXCEL to WORD and retain formatting

    Check out word's FormatCurrency Function
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. Insert Word Document with a macro, retain original formatting
    By dwhims in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2013, 06:05 PM
  2. Posting table to word from excel 2007 & retain formatting - pasteobject?
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-27-2011, 06:46 AM
  3. Replies: 4
    Last Post: 12-12-2005, 10:10 AM
  4. Retain cell number formatting in Word Mail Merge
    By chriskxp2123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2005, 03:39 PM
  5. How do I copy and paste Excel charts and retain formatting? Mine .
    By Ivan Lawler in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-18-2005, 10:06 AM

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