Never mind... its working now (don't know why)
by U3V6YW5uZQ » Fri, 09 Nov 2007 03:08:02 GMT
Peter! Never mind... I re-saved the Excel workbook as "V3" and for some
reason, the dates are now appearing as they should be. I have no idea why.
I am, of course, still open to any suggestions or changes to the Word and/or
Excel documents (as you have the time/desire).
Suz
Re: Never mind... its working now (don't know why)
by Peter Jamieson » Fri, 09 Nov 2007 03:22:26 GMT
I've had a quick look, and I think the problem is caused by the fact that
some of the fields are only present in the first data row. In this case, the
Excel driver/provider may get a bit confused as to the data type. If you
duplicate that data for the other rows instead of leaving it blank (if
that's an option) I suspect things will go much better.
(FWIW What happens here is that when I first preview the data, I see a
5-digit number instead of the date, as you do, but after that things seem
OK.)
--
Peter Jamieson
http://www.**--****.com/
Re: Never mind... its working now (don't know why)
by U3V6YW5uZQ » Fri, 09 Nov 2007 04:38:06 GMT
hanks Peter... I had already copied the format down to row 250 (I'm still
trying to work out a way to programatically have Excel copy down to the next
row). I'm thinking the problem was the date format was originally "Custom"
-- and when Word encountered it, it didn't know what to do with it.
Regardless, it seems to be working fine now.
Thanks again!
"Peter Jamieson" wrote:
Similar Threads:
1.backspace disabled but i don't know why
I have somehow enabled a setting on Microsoft word 2002 which disables the use of backspace when you select text. But I don know how to make it go back. It quite hared to explain the problem and is easily described by an example:
Say you select a word which you want to delete you have various options of doing so, you can press the delete key (the most obvious), the backspace key or just type which replaces the selected word with whatever you type.
These last two for some reason do not work in word anymore and it is extraordinarily annoying especially when you for get and there ends up being loads of words you thought you deleted left I your document.
I would love to find out how to fix this problem as it has happened on three of my computers.
2.When I open a word, it pops up and don't know why
When I open a word file, a window pops up saying "The command cannot be
performed because a dialog box is open. Click OK, and then cloase dialog
boxes to continue" I don't know why.
Can you help me?
3.Cannot sucessfully download updates and don't know why
My spell check does not work on MS 2003. I went to the MS site for updates
and there were 3. I clicked to download but it said it was unsuccessful but
it did not say why.
4.run-time error 13 - Type mismatch (don't know why)
Hi,
What worked six months ago seems to give a runtime error now.
Revisting a VBA routine as the project has come out of moth balls.
error 13 - type mismatch on the line:
Set bmrange = destdoc11.Bookmarks("section11").Range ' locate the bookmark
In the snippet of the whole routine,
If Dir(strAtt) = "" Then
MsgBox "File does not exist"
Else
Set srcDoc = Wordapp.Documents.Open(strAtt) 'attachment sheet
End If
'open the letter
Set destdoc11 = Wordapp.Documents.Open(strInputFileName) 'letter
Set bmrange = destdoc11.Bookmarks("section11").Range ' locate the bookmark
'create new section - add a page past the bookmark
destdoc11.Bookmarks("section11").Range.InsertBreak
Type:=wdSectionBreakNextPage
're-insert the bookmark as we have removed it by the section break
destdoc11.Bookmarks.Add "section11", bmrange
'copy the text and replace the bookmark
bmrange.FormattedText = srcDoc.Range.FormattedText
destdoc11.close (wdSaveChanges)
'close the Attachment sheet
srcDoc.close (wdDoNotSaveChanges)
I retraced my steps revisted posts from April and use of bookmarks on the
FAQ word site and I can't see what could cause this glitch.
Corrupt VBA or the bookmarks in the original letter?
Any ideas appreciated.
Regards
bill
5.MY WORK PROGRAM IS LOCKED AND I DON'T KNOW HOW TO UNLOCK IT
what do i do
6. hey how do i open microsofft work it's key i don't know the 25 key
7. My IF statement doesn't work...anyone know why?
8. why don't work RUNADDON("DBU")