+ Reply to Thread
Results 1 to 18 of 18

Require VBA Code for QR Code

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Exclamation Require VBA Code for QR Code

    Hello,
    I want to generate QR code in my excel file with vba coding with the help of button. I have created one excel file with the help of vba code which i have found on internet. But problem is that, when i try to save my excel file after generating QR code with the help of vba coding, my EXCEL FILE STOP TO RESPOND. Please provide solution for smooth working of file. File is attached.
    Attached Files Attached Files

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

    Re: Require VBA Code for QR Code

    How do you expect other to help you if you do not include the tools reference dor the barcode geberator.
    The reference you are using is on your desktop and is, if i read it correctly for Microsoft Access, maybe that's the problem:
    Microsoft Access BarCode Control 14.0
    ---
    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

  3. #3
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Re: Require VBA Code for QR Code

    Thanks for your reply. Frankly speaking i am very new to VBA and learning things from internet sources so do not understand quickly which tool is in PC and creating problem. Microsoft tool 14.0 was installed in my pc but i think lateron i have removed it. For this file i have tried to used pure vba code and believe that this tool is not done any intervention. I think previous file is not working good so I also attached new file. Your help will be appreciated.
    Attached Files Attached Files
    Last edited by chintamani.avinash; 10-20-2020 at 01:41 PM.

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

    Re: Require VBA Code for QR Code

    Good, this file works, I don't get an error or a hanging system
    What's the problem?
    I'm running the same Office version (2016)

  5. #5
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Re: Require VBA Code for QR Code

    When i generate QR code and try to save file. My excel file stop to respond / work and closes itself.

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

    Re: Require VBA Code for QR Code

    It works fine here
    Have you tried to take it step by step in the vba code?

  7. #7
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Re: Require VBA Code for QR Code

    Means with the text "FIN STAT SALE NP 0 CA 0 LOAN INVEST DRS Cash in Hand Cash @ Bank Balance 0 Depreciation 0 Closing WDV 0 HP 80C 0 Ch VI 0 Tax Payble 0" it is working fine at your side?
    please tell how to take step by step in the vba code. Because i have taken and using the code as it is with some minor modification.

  8. #8
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Re: Require VBA Code for QR Code

    This is the screenshot of the problem.
    Attached Images Attached Images
    Last edited by chintamani.avinash; 10-20-2020 at 02:43 PM.

  9. #9
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Re: Require VBA Code for QR Code

    Also when i generate QR code, before saving, movement of the cursor within sheet becomes slow. And after this when i try to save it gives above error.

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

    Re: Require VBA Code for QR Code

    There is indeed something wrong after you try to save the file, indeed it stops working. Cannot figure out why.
    Try this file, I've used it in the past.
    You enter the string in Cell A2 and then Click Cell A11 as if you would edit it, and the code runs, and works
    I compared the result with your generated QR and it's identical and takes me to the same link
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Re: Require VBA Code for QR Code

    Thanks for your response. I tried this file and works well. But this file requires internet connection. Data is to be sent to some URL and QR is generated. Can you make this file work in offline mode also? Or any other solution? Thanks.

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

    Re: Require VBA Code for QR Code

    Honestly, no, I tried other code generators, they all work fine except with the text you're using, so there must be something there that forces Excel to close down but I don't know.

    If you place another text in your file then it works.
    So you will have to use the one that requires Internet or else you will have to do more testing. I don't have a better answer for you

  13. #13
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Re: Require VBA Code for QR Code

    Okk, thank you for your efforts. In case if you find any solution please let me know. Thanks again.

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

    Re: Require VBA Code for QR Code

    I placed a question at on another forum that did some QR coding but my guess it's not the code but the text and the length of it.
    It's not really something you place in a QR-Code

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

    Re: Require VBA Code for QR Code

    Sorry this is as far as I can go.
    Your text causes the following error and hangs-up the system

    If you pass a real url or some other text it works fine.
    Attached Images Attached Images

  16. #16
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Re: Require VBA Code for QR Code

    Thanks a lot. Am i having long text? Can i alter VBA code for long text?

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

    Re: Require VBA Code for QR Code

    Good luck, I suggest you contact the person or persons responsible for the code snippet you used.
    It's mentioned in the VBA comments.
    I'm not going to do anything since it works for normal standard texts, but not with whole search values and all the things you used.
    Like I said a QR-Code must have some limitations, so, well, google for that and see whatever you can find.

  18. #18
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    174

    Re: Require VBA Code for QR Code

    yea sure, i will try to find out and if find something then will contribute here. Thanks for support.

+ 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. Require VBA Code for Report
    By sbvaram in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2019, 02:59 AM
  2. Require VBA Code for Summary Report
    By sbvaram in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2019, 07:06 AM
  3. [SOLVED] Help require to amend the code
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2015, 09:50 PM
  4. [SOLVED] Require a code to pop message modification
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-07-2014, 12:16 PM
  5. [SOLVED] Require vba code behind the sheet.
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-27-2013, 12:19 PM
  6. Logic identifie- Require help on code
    By slraik in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2012, 05:34 AM
  7. Change code to require a Response
    By Aeneren in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-22-2012, 11:01 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