Need help with VBA-generated QR Code

Status
Not open for further replies.

YansaneYansane

New Member
Joined
Nov 1, 2024
Messages
22
Office Version
  1. 2019
Platform
  1. Windows
  2. Web
Hi Tech,

Need help with VBA-generated QR Code based on values in certain cells.........................
Series, Firstname, Lastname, Math Grade, Stat Grade, English Grade, Email, Tel, Notification.

Thank you
 

Attachments

  • Excel help.jpg
    Excel help.jpg
    218.5 KB · Views: 6

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi Yansane,

Does it have to be code? Assuming the data starts in Row 3 you could use this:

Excel Formula:
=TEXTJOIN("",TRUE,A2:I2)

This could easily be converted into a macro if you really need it.

Regards,

Robert
 
Upvote 0
Hi Yansane,

Does it have to be code? Assuming the data starts in Row 3 you could use this:

Excel Formula:
=TEXTJOIN("",TRUE,A2:I2)

This could easily be converted into a macro if you really need it.

Regards,

Robert
Hi Robert,

I'd definitely use macro as I really need it.
Yes, the data starts in row 3.

Thank you
 
Upvote 0
Try this:

VBA Code:
Option Explicit
Sub Macro1()

    Dim wsSrc As Worksheet
    Dim lngLastRow As Long
    
    Application.ScreenUpdating = False
    
    Set wsSrc = ThisWorkbook.Sheets("Sheet1") '<-Sheet name with the data. Change to suit if needed.
    
    On Error Resume Next
        With wsSrc
            .ShowAllData
            .Columns.EntireColumn.Hidden = False
            .Rows.EntireRow.Hidden = False
            lngLastRow = wsSrc.Range("A:I").Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
            If lngLastRow >= 3 Then
                .Range("J3:J" & lngLastRow).Formula = "=TEXTJOIN("""",TRUE,A3:I3)"
                'Use (uncomment) the following two lines if you want only the values of the formulas to remain
                'wsSrc.Calculate
                '.Range("J3:J" & lngLastRow).Value = .Range("J3:J" & lngLastRow).Value '<-Use this if you want the values of the formula to show only.
            End If
        End With
    On Error GoTo 0
    
    Application.ScreenUpdating = True

End Sub
 
Upvote 0
Duplicate to: Need help with VBA-generated QR Code

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.

I note also that you have already been told about this recently: VLookup or Match or Index: """Trying to figure out how to use formula to enter matching value in a sheet, based on small data from another sheets"""
If you continue to post duplicate questions further action will be taken.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,728
Messages
6,180,600
Members
452,989
Latest member
Ol Reliable

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top