VBA - posting data from Excel to Word as typed, not making first letter upper-case

Dave Coram

New Member
Joined
Apr 18, 2016
Messages
21
Morning!

Hope all's well!

A quick question, if I may:

I have a macro which works exactly as it should - it takes data from an Excel spreadsheet, and pastes it in the relevant places on a Word form - the only thing is, where the data has been put in, it converts the first letter to upper-case (as Word would do normally).

Is there any way in which I can force Word to drop the data in as typed?

It's not a biggie - can work with things as they are, if need be - it just looks odd to have the first letter of things like e-mail addresses in upper-case.

Thanks in advance!

Dave
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Morning Dave,

Something like this;

Code:
Set wordapp = CreateObject("word.Application")

Set NewDoc = wordapp.Documents.Add
wordapp.Visible = True

[B]wordapp.AutoCorrect.CorrectSentenceCaps = False[/B]

End Sub

Hope this helps,
Cheers,
Alan.
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top