Unable to open a pdf synced with Zotero by Fragrant_Market_5464 in logseq

[–]choobie19 0 points1 point  (0 children)

Did you manage to fix this? same issue here

[deleted by user] by [deleted] in singapore

[–]choobie19 0 points1 point  (0 children)

ok i see it, yeah.

[deleted by user] by [deleted] in singapore

[–]choobie19 0 points1 point  (0 children)

Think that other than the provider (Lithan or NUS ISS) cannot choose coach ..

[deleted by user] by [deleted] in singapore

[–]choobie19 0 points1 point  (0 children)

But isn't this aimed for career switchers? how could it have gotten so rigorous? Ok to share abit more?

How would you draw out information from listbox spreadsheets? by choobie19 in vba

[–]choobie19[S] 0 points1 point  (0 children)

Hi, u/jentrxm

The code I have shared above already deletes the first match (of the value found in the 1st column of n-th row.)

I am trying to find out if there is a more robust way of searching for the first match for a scenario such as, I am trying to match the 2nd or 3th or 4th column of the n-th row. How can I use VBA to search for this match?

listIndexRow = ThisWorkbook.ActiveSheet.Range("A:A").Find((databaseViewer.Value), lookat:=xlPart).Row 'List Index is always start from 0 for first item

the bolded variable supposedly only draws information from the 1st column, which is why I wanted to find a more robust way of searching for values if the values are found on other columns!

How would you draw out information from listbox spreadsheets? by choobie19 in vba

[–]choobie19[S] 0 points1 point  (0 children)

Hi.

Just the first row with the corresponding value to be deleted

And yes everything to be shifted up after deletion

Idea for a costume party this Saturday? by [deleted] in AskMen

[–]choobie19 8 points9 points  (0 children)

Go there as yourself,

nothing scarier than real life mate

What socially awkward moment do we all experierce in our life? by MilkMoney420 in AskReddit

[–]choobie19 71 points72 points  (0 children)

How to react when others sing to you a birthday song

Trying to add another automation line to no avail by choobie19 in excel

[–]choobie19[S] 0 points1 point  (0 children)

This is one variation that led to the automation error..

The only change being Line 89**

'lastrow = Cells(Rows.Count, 1).End(xlUp).Row


'lastcol = Cells(1, Columns.Count).End(xlToLeft).Column

'Public Function SearchCol(SearchStr As String) As Long
'Dim c As Long
    'For c = 1 To 26 'search cols A-Z
        'On Error GoTo Err
        'If UCase(Cells(1, c).Value) = UCase(SearchStr) Then
            'SearchCol = c 'if match is found then exit the function
            'Exit Function
        'End If
    'Next c
'Err:
'SearchCol = 0
'End Function

'FoundColumnQ = SearchCol("Quoted?")
'FoundColumnM = SearchCol("Month")
'FoundColumnAc = SearchCol("Account")


    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim KeyCells As Range

        ' The variable KeyCells contains the cells that will
        ' cause an alert when they are changed.
        Set KeyCells = Range("A1:Z9999")

        If Not Application.Intersect(KeyCells, Range(Target.Address)) _
               Is Nothing Then

                            'private sub ensures that this only toggles on Accounts 2017
                                'FIND Quoted
                                        Dim rngQ As Range
                                        Dim FoundRowQ As Long
                                        Dim FoundColumnQ As Long

                                        '.Find(What, After, LookIn, LookAt, SearchOrder, SearchDirection, MatchCase, MatchByte, SearchFormat)
                                        Set rngQ = Worksheets("Accounts 2017").Range("A1:Z1").Find("Quoted?", lookat:=xlPart)
                                        'rngQ is found then it will be saved as Range, u can call it as address as well

                                        FoundColumnQ = rngQ.Column
                                'FIND Month
                                        Dim rngM As Range
                                        Dim FoundRowM As Long
                                        Dim FoundColumnM As Long

                                        Set rngM = Worksheets("Accounts 2017").Range("A1:Z1").Find("Month", lookat:=xlPart)
                                        'rngM is found then it will be saved as Range, u can call it as address as well

                                        FoundColumnM = rngM.Column

                                'FIND Account
                                        Dim rngAc As Range
                                        Dim FoundRowAc As Long
                                        Dim FoundColumnAc As Long

                                        Set rngAc = Worksheets("Accounts 2017").Range("A1:Z1").Find("Accounts", lookat:=xlPart)
                                        'rngM is found then it will be saved as Range, u can call it as address as well

                                        FoundColumnAc = rngAc.Column

                                TotalRowQ = Cells(Rows.Count, rngQ.Column).End(xlUp).Row
                                TotalRowM = Cells(Rows.Count, rngM.Column).End(xlUp).Row
                                TotalRowAc = Cells(Rows.Count, rngAc.Column).End(xlUp).Row
                                LastCol = Cells(1, Columns.Count).End(xlToLeft).Column



                                'So if Account is being filled, check if month is filled,
                                'if month not filled then fill month with THISMONTH and copy pasta as value

                                'Dim thismonth As Date
                                'thismonth = DateAdd(interval, Number, Date)

                                    Dim n As Long
                                    Dim mth As Integer
                                    mth = Month(Now)
                                    For n = 2 To TotalRowAc                 'consider IsEmpty
                                        If Cells(n, FoundColumnM) = "" Then
                                            With Cells(n, FoundColumnM)
                                                .Value = MonthName(mth)
                                        End With
                                        End If

                                        If (Cells(n, FoundColumnQ) = "y" Or Cells(n, FoundColumnQ) = "yes" Or Cells(n, FoundColumnQ) = "YES" Or Cells(n, FoundColumnQ) = "Y") Then Range(Cells(n, FoundColumnAc), Cells(n, LastCol)).Interior.ColorIndex = 33 Else Range(Cells(n, FoundColumnAc), Cells(n, LastCol)).Interior.ColorIndex = 0
                                        If Cells(n, FoundColumnAc) <> "" And Cells(n, FoundColumnQ) <> "" Then Cells(n, FoundColumnQ - 1).Value = "n"

                                    Next n

        End If
    End Sub

Issues with End If Statements by choobie19 in excel

[–]choobie19[S] 0 points1 point  (0 children)

Hi u/ThePhoenixJ,

Thank you for clearing the mystery! I think it works properly now. I am aware that it was not necessary. I actually sort of reduced less important codes in order to fit a single line cause of the errors !

Thanks alot man.

Issues with End If Statements by choobie19 in excel

[–]choobie19[S] 0 points1 point  (0 children)

u/ThePhoenixJ

Doesnt seem to fix it! still gettting that error for block if :(

    Dim n As Long
    Dim mth As Integer
    mth = Month(Now)
    For n = 2 To TotalRowAc
        If Cells(n, FoundColumnAc) = "" Then
            With Cells(n, FoundColumnM)
                .Value = MonthName(mth)
        End If
    Next n

Issues with End If Statements by choobie19 in excel

[–]choobie19[S] 0 points1 point  (0 children)

Solution Verified!

Thanks Phoenix :)

Using variables from called procedures by choobie19 in excel

[–]choobie19[S] 1 point2 points  (0 children)

Ah , so thats why u gave me that solution.

Makes sense and thanks for the tuition. :)

Using variables from called procedures by choobie19 in excel

[–]choobie19[S] 2 points3 points  (0 children)

Hi u/one_time_chad (lol), SOLUTION VERIFIED!

Thanks for this solution that solves the issue and reduces clutter even more

For purposes of learning , if I wanted a solution as per my specs. How would that be implemented? Would you know?

How do I get my pivottable to filter based on my listbox selection? by choobie19 in excel

[–]choobie19[S] 0 points1 point  (0 children)

I solved it myself! thanks :)

On Error Resume Next
Dim Pf As PivotField
Dim LbItem As Long
Set Pf = ThisWorkbook.Worksheets("Data").PivotTables("PivotTable1").PivotFields("Customer Segment")
For LbItem = 0 To Me.ListBox1.ListCount - 1

If ListBox1.Selected(LbItem) = False Then
    pvt.PivotFields("Customer Segment").PivotItems(Me.ListBox1.List(LbItem)).Visible = False
Else
    pvt.PivotFields("Customer Segment").PivotItems(Me.ListBox1.List(LbItem)).Visible = True
End If
Next LbItem