+ Reply to Thread
Results 1 to 3 of 3

Error on a piece of code

  1. #1
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Error on a piece of code

    Hi,

    I have a macro that copys some info from excel to a word table.
    It all worked fine when this was a worksheet_selectionchange event but now that I changed it to a useform I get this:
    User Defined something error and it colors this part of the code:
    Please Login or Register  to view this content.
    And the reference for office 14.0 library is enabled.
    What can be wrong?

    Before this I had an error opening the useform and I searched the forum for the error and it got the answer to re-install the addons.
    I didn't re-install the addons because the macro for loading the userform started working again but now I got this error.

    Any idias?

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Error on a piece of code

    You need a reference to Word set.

  3. #3
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Error on a piece of code

    LoL...I guess it disabled the word reference when I opend the workbook in excel 2007 or something.
    Stupid me...

    Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1