Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    Hi to all of you, You are all very nice to help me out so much... I really appreciate it!! :-) I can work to improve this a little more till next week friday.. but not much time left at all! So, I will use WordApp.quit as I have been using it. I wasn't sure if this terminates the process or...
  2. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    Ok. I already played around with Chdir and it worked well. So, I've got that figured out.. thanx however.. :) Now, I just need to know how to terminate a process (winword.exe from the task manager). Would wordapp.quit do it?? Thanx for all of your help everyone.. Hope I don't run into any big...
  3. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    Hi, Have another question: I have this code for when the user needs to select the file from where a directory. I need it to default to where the workbook is saved and not just temp to begin with: Now, as soon as the dialogue is displayed, the user needs to go to the appropriate directory to...
  4. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    Hi PHV and Gerry, I have read your comments.. thank you .. :) The book-marked documents are in .doc format. I don't want these files touched.. what I want is to populate them and then, save them as something else.. however, the problem is if the user clicks on cancel on the SaveAs Explorer...
  5. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    I don't know how to Terminate the Processes via VBA code... don't know the command for it.. Does wordApp.quit work for this?? I tried that line of code: Set Wordapp.Visible = True but gave me an errror. Now as for the main problem here: Ok. Here it is.. I tried the line of code you gave...
  6. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    I have another problem.. in the task manager, I have sooo many Winword.exe processes .. as I've been testing.. so, what do I do with them??? Thanx, Anita
  7. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    Hi Tony, Thank you soooooo much for all your help. Very nice of you!! :) Ok. Here it is.. I tried the line of code you gave me for opening the document after I close it: WordApp.Documents.Open(FileSaveName) The problem is very strange.. If I put a breakpoint on this line, then, it'll open the...
  8. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    Hi Tony, Thank you for your time. :) Ok. I'll try and answer the questions as much as I can... 1-2. lets just says there is one instance of a word doc (I have a template that I have book-marked and populate via Excel). 3. After populated, I prompt the user (explorer window) for a name for the...
  9. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    I am doing this now: FileSaveName = Application.GetSaveAsFilename(InitialFileName:="", Filefilter:="Word Files (*.doc), *.doc") If FileSaveName <> False Then With Mydoc .SaveAs Filename:=FileSaveName, FileFormat:=wdFormatDocument, ReadOnlyRecommended:=True...
  10. Anna007

    Need help with OnCancel syntax in VBA when working with docs

    Hi, I am openings mydoc and mydoc2 (which are templates) and populating them via Excel automatically (via vba code). Now, I display the explorer window for the user to provide a SaveAs name at the end. If I hit cancel, it just continues. I don't want this. I want it to stop and set the docs to...
  11. Anna007

    Help on upgrading to Excel 2003 - development problems!!

    What is taking about a min (if not longer) is the code for hiding rows of an amortization table. I have about 60 rows and I need to hide all the zero rows of this table. In excel 2002, this would take about a couple of seconds only and now, with Excel 2003, it's taking about a min or...
  12. Anna007

    Help on upgrading to Excel 2003 - development problems!!

    Hi, I have upgraded from Excel 2002 to 2003 and I have been developing. For some reason, my code is very slow and it was working very fine before in Excel 2002 and very quick!!! I don't know why?!!!! It then froze after the code ran. I don't understand why!!!! Please help asap.. anyone...
  13. Anna007

    Help with Book-Marked docs and Excel

    Hi, Thank you but I have got it working fine now. Thanx anyways, Anna
  14. Anna007

    Help with Book-Marked docs and Excel

    I have the following and I get an error: Mydoc2.Bookmarks("Equip_TotalPrice").Range.Text = Worksheets("Price").Range("ProposedEqptSellingPrice").Value My doc is book-marked and I need to grab the appropriate value from Excel and put it into the Book-Marked Field. Need help asap please... :)...
  15. Anna007

    Appending or merging word docs via VBA - Help Plz!

    I have been having trouble with this but I'm having a work-around for now. Thank you, anyways. What I really need to do now is this: My doc is book-marked and I'm trying to do the following from Excel: Mydoc2.Bookmarks("Equip_TotalPrice").Range.Text =...
  16. Anna007

    Appending or merging word docs via VBA - Help Plz!

    Hi, Sorry for being vague.. I meant it's giving me an error when it gets to this line below and won't continue (after I activated the fileB: Selection.EndKey unit:=wdStory The error message is something like this is not supported .. so, then I checked the directory where the files are...
  17. Anna007

    Appending or merging word docs via VBA - Help Plz!

    Thanx so much for your help.. I understand what you are trying to do and tried it.. but getting an error when I try to do this: Selection.EndKey unit:=wdStory Selection.TypeParagraph This is not working.. what would be the code to insert a page in btwn and then paste it? Thanx so much, Anna
  18. Anna007

    Appending or merging word docs via VBA - Help Plz!

    Oh thank you Gerry for your help and you are right. I was originally closing the files bc the requirement was that they were to be saved differently under different names but then this has changed and this is why I need to append them at the end. So, no.. I don't need to close them since I need...
  19. Anna007

    Appending or merging word docs via VBA - Help Plz!

    Hi, I do this via code actually.. need it automated. So, I have FileA that I populate and then close it. Then I have FileB that I populate and close afterwards. At the end, I need to save these and I ask the user for a SaveAsName. So, I need to append them or think of a way to do this. I like...
  20. Anna007

    Appending or merging word docs via VBA - Help Plz!

    Hi, I have 2 documents in word that I populate via vba (bookmarking) from Excel. But I need to append/merge them together at the end, when completed. This way, it's easier for the user to look for 1 final file instead of 2. How do I do this?? Thanx, Anna

Part and Inventory Search

Back
Top