index > Visual Basic for Applications (VBA) > VB to MSWORD BookMark

VB to MSWORD BookMark


Hi,

I am trying to get a currency held in a VB variable from an access database to move accross to MSWORD and keep the decimal point and commas in the bookmark.

If i try to transfer over 15.36 for example i get the decimal point, but for numbers like 150.00 once put into MSWord i get 150.

Is there any way to keep the decimal places even if its 0 and add the comma's in automatically. It can be hardcoded in using strings but i think there must be a much simpler method of achieving the same result.

Ray Mordy

Hi

Have you tried formatting the value using the Format function to get what you want?

Peter Mo.

Peter Mo.
reply 2

You can use google to search for other answers

 

More Articles

• custom toolbar error
• Serial Port Sample Code Needed for Visual Studio 2005 & Visua...
• VBA excel - problem with having clause in sql with adodb.connecti...
• ned help with excel
• How to retrieve worksheet name using ADO?
• Table or Array in the header of an excel sheet
• Run-time error '1004' in import macro
• insert column after pivot table
• SaveAs question
• Help with DDEPoke
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

• Exporting a table from an Access File to
• Adding a worksheet to the workbook
• VBA Excel - Using FindNext
• html tag not working
• Help with DDEPoke
• VBA Code to save Excel w Name including
• Getting a checklist to report back only
• How can I give my own Error handling a h
• Aliases !!!
• VBA Form in MS Word template to populate
• VBA text box! I'm completely lost...
• Personal.xls
• How to preserve the date format while re
• Help with the application-defined or obj
• Display a drawing on an MS Access Form

Hot Articles

• Excel 2003 - hiding a row question
• Cannot close all instances of excel afte
• deleting record
• DLL/OCX Redirection from Word template
• partly remove the code from VBComponents
• Serial Port communication from Excel 2003
• Accessing Tables in Access 2000 that are
• Error 3251 using ADO & VBA to drop a
• Can not generate Proxy class for web ser
• Problem: Code not in line with slide sha
• Problem with excel, VBA & Bloomberg-
• Referring to a range on another workshee
• pasting in excel
• transaction processing in an Access app?
• Refreshing a web query that is behind a

Recommend Articles

• vba access updating a record
• ftp using vba
• Update existing chart ranges in VBA
• Transfering data from a textbox in one f
• Converting text file to excel file macro
• Save Each page of a Word merge as a sepe
• Excel Macro - saveas command with curren
• Can any1 arrange the ADO connection logi
• Focusing on textbox (in PPT)(use VB?)
• Excel Data Read
• passing data in multiple rows in a recor
• run a macro in excel
• Visio : Search facility using VBA
• Custom Date Picker Control
• Autofill