Share via

Formatting Bookmarks

Anonymous
2010-10-25T20:05:42+00:00

I'm currently using VBA to bring data from Excel to Word.  I simply have the VBA put the Excel data into bookmarks.  However, it always uses the date format (MM/DD/YYYY).  How can I change it so that the date format is the long date format (ie January 1, 2010)?

Thanks!

Using Office 2007

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Doug Robbins - MVP - Office Apps and Services 323.1K Reputation points MVP Volunteer Moderator
2010-10-25T20:10:42+00:00

Use the VBA Format() function to format the date as you want it.

Format([thedate], "mmmm d, yyyy" )

where [thedate] is what you are obtaining from Excel.

-- Hope this helps.

Doug Robbins - Word MVP,

dkr[atsymbol]mvps[dot]org

Posted via the Community Bridge

"jtrevill" wrote in message news:*** Email address is removed for privacy ***...

I'm currently using VBA to bring data from Excel to Word.  I simply have the VBA put the Excel data into bookmarks.  However, it always uses the date format (MM/DD/YYYY).  How can I change it so that the date format is the long date format (ie January 1, 2010)?

Thanks!

Using Office 2007


Doug Robbins - Word MVP dkr[atsymbol]mvps[dot]org

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2010-10-25T20:14:26+00:00

    Ha!  Thanks so much - I was so stuck on figuring out how to change the way the Word Bookmark handled the date.

    Thanks for the simple solution!

    Was this answer helpful?

    0 comments No comments