• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

VBA for QR Codes|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / VBA for QR Codes|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosVBA for QR Codes
sp_PrintTopic sp_TopicIcon
VBA for QR Codes
Avatar
And180y
Member
Members
Level 0
Forum Posts: 10
Member Since:
March 27, 2020
sp_UserOfflineSmall Offline
1
May 16, 2020 - 9:45 am
sp_Permalink sp_Print

Hi Philip, have you done any work with QR codes, I need a solution which allows me to link to a cell value and update the QR when the cell value changes. 

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1549
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
May 16, 2020 - 10:06 am
sp_Permalink sp_Print

Hi Andy,

no not really.  Do you already have code for this?

Phil

Avatar
And180y
Member
Members
Level 0
Forum Posts: 10
Member Since:
March 27, 2020
sp_UserOfflineSmall Offline
3
May 16, 2020 - 10:09 am
sp_Permalink sp_Print

I have tried every one I can find on Google to no avail. They all run with errors. 

Avatar
And180y
Member
Members
Level 0
Forum Posts: 10
Member Since:
March 27, 2020
sp_UserOfflineSmall Offline
4
May 16, 2020 - 10:13 am
sp_Permalink sp_Print

This sheet, (just a test sheet) has two different macros which should do it but neither work one via the button and the other with a call. 

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1549
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
5
May 16, 2020 - 1:54 pm
sp_Permalink sp_Print

Hi Andy,

Where did you get this code?  Did you get that workbook like that?  It's a bit messy!

There are 4 modules and 3 Subs with the same name so that's why the code isn't working.

Attached is a working version. Put the text to encode into G2.  If you look at the Render_QRCode sub in Module 3 you'll see that it is set to pickup the value in G2.  You can change this to whatever cell you like.

Cheers

Phil

Avatar
And180y
Member
Members
Level 0
Forum Posts: 10
Member Since:
March 27, 2020
sp_UserOfflineSmall Offline
6
May 21, 2020 - 8:55 am
sp_Permalink sp_Print

Phil, thankyou so much for your help with this, it works perfectly. 🙂 

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1549
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
7
May 21, 2020 - 9:22 am
sp_Permalink sp_Print

No worries.

Avatar
Hans Hallebeek
the Netherlands
Member
Members


Trusted Members
Level 0
Forum Posts: 182
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
8
October 21, 2020 - 4:36 pm
sp_Permalink sp_Print

Hi Phil,
Excuse my budding in but I was trying to help someone of the Excel Help Forum (https://www.excelforum.com/exc.....-post.html)

The texts this person is using somehow throws an error and shuts down Excel.

I tested the text with your file here and the same issue. No error message just bang - Excel shuts down and restarts

this is the text to create QR code

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

Just curious what it could be.

 

Cheers,

Hans

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1549
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
9
October 22, 2020 - 9:08 pm
sp_Permalink sp_Print

Hi Hans,

It appears to have something to do with the length of the string.  If you split the string into 2, both halves encode without issue.

I haven't figured out why it crashes with the full string.  I'm not familiar with the VBA, it was in the file supplied for this particular problem.

Phil

Avatar
Hans Hallebeek
the Netherlands
Member
Members


Trusted Members
Level 0
Forum Posts: 182
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
10
October 23, 2020 - 10:34 pm
sp_Permalink sp_Print

Hi Phil,

I figured out that much, passing shorter strings had no problems and also the text in the string is not really something I would use in a QR-code either.

Was just curious; anyway I could not find a text length limit to QR-code gerenation.

 

Thanks for looking.

This is (for me at least) no longer an issue 

 

Cheers and keep safe,

 

Hans

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Tracy English, David Birch, QSolutions Group
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Jennifer Rodriguez-Avila
Khaled Ibrahim
Kiran Supekar
Lisa Myers
Ronald White
Ginette Guevremont
Taryn Ambrosi
Mark Davenport
Christy Nichols
Harald Endres
Forum Stats:
Groups: 3
Forums: 24
Topics: 6530
Posts: 28602

 

Member Stats:
Guest Posters: 49
Members: 32820
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.