+ Reply to Thread
Results 1 to 3 of 3

Unabel to find and replace the date format and number format form excel to word using VBA

  1. #1
    Registered User
    Join Date
    12-05-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    2

    Post Unabel to find and replace the date format and number format form excel to word using VBA

    Hello everyone,

    I am new to excel VAB tyring to learn. i have tried to perform a small action of finding and replacing the data in Word 2013 using the excel VBA, and it runs successfully except for the date and number format.

    The date i have in the Excel is December 12 2019, but when it is being copied and found and replaceed in Word it is pasted as date# (Number) 45636, and the number that i have in excel is 1080 and it is pasted as 1080.3333333.

    I am not able to format the date and numbers as per the excel format, and at the end. I tried to save the word and convert it to PDF, but have no idea on how to write the code. I am using the code as below

    Please Login or Register  to view this content.
    Could some one please help me in formating the Date (as December 12, 2019) , Nunber (With no decimal Value) and converting the word to PDF.

    Thanks in advacne for the help.

    Kind Regards,
    Vishnu T

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Unabel to find and replace the date format and number format form excel to word using

    Code Tags Added
    Your post does not comply with Rule 2 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.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    12-05-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    2

    Re: Unabel to find and replace the date format and number format form excel to word using

    Thanks for the help Alan, i will follw the Forum rules correctly next time

+ 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. [SOLVED] find and replace: number format not changed by macro
    By BROEA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2015, 09:13 AM
  2. Replies: 3
    Last Post: 12-01-2014, 12:15 AM
  3. Replies: 0
    Last Post: 01-18-2014, 02:02 PM
  4. Macro changing date format when doing find and replace
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-22-2013, 08:16 PM
  5. Find and replace the date format in Word file
    By vinwin06 in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2010, 09:11 PM
  6. Replies: 2
    Last Post: 08-26-2009, 06:50 PM
  7. Replies: 0
    Last Post: 06-28-2006, 01:10 PM

Tags for this Thread

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