Consulting

Results 1 to 7 of 7

Thread: code needed

  1. #1

    code needed

    Hi All,

    Today I'm joined this forum. Hoping that I will get help on Word vba code..

    For better understanding I will try to give you scenario.

    File A - Existing word file with client details ABC.
    File X - Template word file.

    I want to copy file A data into file X. "X" file are stored at one location that is fix.
    X file should get save as with client name available in file A.

    In file A, from page 1 till last page every headings position and their value of position should get noted in variable's we create.
    After having position number's, we will copy that every data to respective location in file X.

    for e.g. on page 1, there are 10 item's which I need to copy and paste it in file X like below..

    In file A
    Client name - ABC
    should get paste "ABC" in file X in front of client name position.

    Renewal date - 01 May 2022 from file A should get paste in front of Renewal date of file X..


    like this way I want to develop a code. Could anyone please help me here.. pls guide..

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Cross-posted at: https://www.mrexcel.com/board/thread...rd-vba.1202945 - where you have already been given significant help.
    Please read VBA Express' policy on Cross-Posting in Rule 3: http://www.vbaexpress.com/forum/faq...._new_faq_item3
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    both are different things.. you please dont respond here.. I'm looking help from other User's or Experts.. Thank You..!!

  4. #4
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    both are different things
    They are both the same question.

    I'm looking help from other User's or Experts
    Paul is one of the best Word experts on the Internet.

    If you don't like following the rules, you can get banned from all Forums. In fact, you just earned a one week ban from vbaexpress.

    I hope to see you in one week.
    SamT
    Moderator.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  5. #5
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,048
    Location
    Damn good thing I didn't get to this response earlier.... a "week" SamT? New_Learn you need to understand that your attitude is completely unacceptable. Paul is highly credentialed both with knowledge and with willingness to contribute to all forums to expand anyones knowledge. Paul, please accept our apologies for this unfortunate insult by a stupid novice.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  6. #6
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  7. #7
    VBAX Contributor
    Joined
    Jul 2020
    Location
    Sun Prairie
    Posts
    123
    Location
    Piling on.
    Paul is very knowledgeable. He shares his expertise freely on a number of forums.
    Sometimes he is a bit short with people who do not read what he says.
    However, you should read the rule he linked. Read the follow-up link as well. This is about courtesy to those people you want to help you.

    Word vba and Excel vba are related and similar, they use the same structure, but, they are using a different object model. You cannot expect code that works great in Excel to run at all in Word without significant changes. Also, you should know that Word has different methods to hold data and bring it from one file or spot to another, including Mail Merge.
    Last edited by Chas Kenyon; 05-09-2022 at 09:18 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •