+ Reply to Thread
Results 1 to 12 of 12

Create object 64 bit

  1. #1
    Registered User
    Join Date
    08-04-2020
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    56

    Create object 64 bit

    Hi

    I have and Old script using create object.

    It create a txt dokument and use it for printning on a zebra printer.

    It Can’t run on 64 bit Excel.

    Is there a substitut for create object in Excel 64 bit ?

    Regards
    Tony

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Create object 64 bit

    There must be no differences for x32 and x64 system if you create object by standard method. Could you show the sсript.

  3. #3
    Registered User
    Join Date
    08-04-2020
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    56

    Re: Create object 64 bit

    Hi Thank you


    Module1

    It makes failure in create object, when runned in excel 64 bit.

    Please Login or Register  to view this content.
    Last edited by Tonyhansson; 12-18-2020 at 01:49 PM.

  4. #4
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Create object 64 bit

    Please check
    MyFile = "C:/testfil.txt"
    it must be MyFile = "C:\testfil.txt"
    On my x64 system the script is ok after change the path.

  5. #5
    Registered User
    Join Date
    08-04-2020
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    56

    Re: Create object 64 bit

    Hi Thank you

    It still makes failure (The path mistakes is made by me), but is not the issue.

    The posted link, I dont understand what I have to change, can you help me.

    If I google Create object, it should not be possible in 64 bit, to use Xactive.

    So how can I change the script ?

  6. #6
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Create object 64 bit

    Quote Originally Posted by Keebellah View Post
    I would alwayy advice 32-bit Excel but it's a choice
    this is very old Microsoft recommendation but now the system must be x64 only.

    @Tonyhansson the script is good by something wrong in the application environment. I agree about References and you can check the script as VBS also.
    Any ActiveCell.Offset must be change to values and call print_label .

    Please Login or Register  to view this content.
    Save the scrip as .vbs and start it from explorer.

  7. #7
    Registered User
    Join Date
    08-04-2020
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    56

    Re: Create object 64 bit

    Thank for your time.

    I dont have the knowlegde to see the issue.

    Could I ask you to look on the complete file, and if nothing is wrong, it must be the enviroment?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,939

    Re: Create object 64 bit

    I think you might need to attach a workbook for this to happen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    08-04-2020
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    56

    Re: Create object 64 bit

    Yes thank you
    Attached Files Attached Files

  10. #10
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Create object 64 bit

    There is no problem in the file except
    MyFile = "testfil.txt" again. There must be full path.

  11. #11
    Registered User
    Join Date
    08-04-2020
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    56

    Re: Create object 64 bit

    Thank you so much for your time.

    It is running without the path in 32 bit, I will chance it, and then I know it must be enviroment and references.
    This help me a lot, now I Can go on to next step

    Merry Christmas

  12. #12
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Create object 64 bit

    Marry Christmas to you too
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 10-01-2020, 06:13 AM
  2. Can't create Outlook Object
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2015, 12:31 AM
  3. Replies: 0
    Last Post: 06-19-2014, 02:09 PM
  4. In Procedure: When use Actual Range Object vs Create Local Object Using Set
    By Filibuster in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-20-2012, 02:21 PM
  5. Create Object (Class)
    By lampis in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 02-22-2012, 11:57 AM
  6. "RunTime error 429 ActiveX Object Cannot Create Object"
    By walid66 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2006, 06:12 PM
  7. Cannot create object
    By extra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2006, 12:50 AM

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