Click here to Skip to main content
15,913,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: macro code that prompt for password or display message each time MS word is opened Pin
ChiSmile2-Jul-09 17:34
ChiSmile2-Jul-09 17:34 
GeneralRe: macro code that prompt for password or display message each time MS word is opened Pin
Dave Kreskowiak2-Jul-09 18:33
mveDave Kreskowiak2-Jul-09 18:33 
GeneralRe: macro code that prompt for password or display message each time MS word is opened Pin
ChiSmile2-Jul-09 22:07
ChiSmile2-Jul-09 22:07 
JokeRe: macro code that prompt for password or display message each time MS word is opened Pin
dan!sh 2-Jul-09 8:45
professional dan!sh 2-Jul-09 8:45 
QuestionSocket programming Pin
Cory Kimble2-Jul-09 4:20
Cory Kimble2-Jul-09 4:20 
AnswerRe: Socket programming Pin
Luc Pattyn2-Jul-09 4:31
sitebuilderLuc Pattyn2-Jul-09 4:31 
GeneralRe: Socket programming Pin
Cory Kimble2-Jul-09 4:54
Cory Kimble2-Jul-09 4:54 
GeneralRe: Socket programming Pin
Luc Pattyn2-Jul-09 5:05
sitebuilderLuc Pattyn2-Jul-09 5:05 
GeneralRe: Socket programming Pin
Cory Kimble2-Jul-09 6:07
Cory Kimble2-Jul-09 6:07 
GeneralRe: Socket programming Pin
Luc Pattyn2-Jul-09 6:12
sitebuilderLuc Pattyn2-Jul-09 6:12 
GeneralRe: Socket programming Pin
Dave Kreskowiak2-Jul-09 9:09
mveDave Kreskowiak2-Jul-09 9:09 
QuestionCompile error Pin
hamed20092-Jul-09 2:13
hamed20092-Jul-09 2:13 
AnswerRe: Compile error Pin
TheMrProgrammer2-Jul-09 3:49
TheMrProgrammer2-Jul-09 3:49 
AnswerRe: Compile error Pin
Dave Kreskowiak2-Jul-09 4:32
mveDave Kreskowiak2-Jul-09 4:32 
Question3D Image Pin
bhargava24092-Jul-09 2:03
bhargava24092-Jul-09 2:03 
AnswerRe: 3D Image Pin
TheMrProgrammer2-Jul-09 4:02
TheMrProgrammer2-Jul-09 4:02 
AnswerRe: 3D Image Pin
Dave Kreskowiak2-Jul-09 4:31
mveDave Kreskowiak2-Jul-09 4:31 
QuestionCrystal Reports 8.5 to email a batch of reports Pin
Raghvendra Kumar Roy2-Jul-09 1:33
Raghvendra Kumar Roy2-Jul-09 1:33 
QuestionImporting html code using HTMLProject object [modified] Pin
Harold_Wishes2-Jul-09 1:00
Harold_Wishes2-Jul-09 1:00 
Hello

I have extracted the html code from a web table embedded in a Word document and stored it in a variable string as shown below. The Word document is saved as an html page in Word.

Dim html_string as String
html_string = ActiveDocument.HTMLProject.HTMLProjectItems(1).Text
Selection.WholeStory
Selection.Delete Unit:=wdCharacter, count:=1
Selection.TypeText Text:=html_string  '''LINE 5 is the problem line


It works very well when I test the script on Word documents with small embedded html tables with few rows and columns but not everything gets stored for large tables beyond a certain number of rows and columns. The string gets truncated after some point. The truncation seems to take place when I execute line 5 above (Selection.TypeText Text:html_string). The "html_string" variable itself retains all of the html code when I throw it's output to the screen so I know for a fact something is happening when I place the contents into the active Word document using the Selection.TypeText method. Is there a character size limit when using the Selection.TypeText method? If so, is there a way around this?

Thanks
Cool | :cool:

Harry Wishes

modified on Thursday, July 2, 2009 9:24 AM

Questionhow to drag video from the webbrowser and download it on a button control Pin
bhumika_singh2-Jul-09 0:58
bhumika_singh2-Jul-09 0:58 
Questionprint prview problem Pin
JC.KaNNaN2-Jul-09 0:29
JC.KaNNaN2-Jul-09 0:29 
AnswerRe: print prview problem Pin
Eddy Vluggen2-Jul-09 2:28
professionalEddy Vluggen2-Jul-09 2:28 
GeneralRe: print prview problem Pin
JC.KaNNaN2-Jul-09 3:38
JC.KaNNaN2-Jul-09 3:38 
GeneralRe: print prview problem Pin
Eddy Vluggen2-Jul-09 6:16
professionalEddy Vluggen2-Jul-09 6:16 
AnswerRe: print prview problem Pin
Henry Minute2-Jul-09 6:55
Henry Minute2-Jul-09 6:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.