The only thing I can think of is either the shape doesn't exist in the sheet or has a slightly different name. Case sensitive applies. so if you wanna remove case sensitivity then you need to change sh.Name = to sh.Name Like
Posts by chirayuw
-
-
-
-
I don't understand what you mean because you can't have the same name for a tab so you can't have two sheets named as "set1" in the same file
-
refer to below links to reference sharepoint
https://stackoverflow.com/ques…file-from-sharepoint-site
https://www.mrexcel.com/forum/…-another-destination.html -
-
attached same file with formula
-
sample file please
-
Use this macro in the sheet that you want it to run
Code
Display MorePrivate Sub Worksheet_Change(ByVal Target As Range) Dim OldEvents As Boolean OldEvents = Application.EnableEvents Application.EnableEvents = False If Range(ActiveCell.Address).Column = 13 _ And ActiveCell = "In Progress" _ And IsEmpty(Range("N" & ActiveCell.Row)) Then Range("N" & ActiveCell.Row) = Date ElseIf Range(ActiveCell.Address).Column = 13 _ And ActiveCell = "Complete" _ And IsEmpty(Range("O" & ActiveCell.Row)) Then Range("O" & ActiveCell.Row) = Date Else End If Application.EnableEvents = OldEvents End Sub
-
Try this. I've left some code segments in incase you wanna use those too. Its a modified version of an old macro of mine
Code
Display MoreSub Get_File_Details() Dim Fname As String 'Dim CB As String 'Created By 'Dim CD As String 'Create Date 'Dim LMB As String 'Last Modified By Dim LMD As String 'Last Modified Date Dim LstRow As String 'Current Row Do While Not IsEmpty(Range("A" & ActiveCell.Row)) If IsEmpty(Range("AI" & LstRow)) Then Else LstRow = ActiveCell.Row Fname = Range("AI" & LstRow) Workbooks.Open Filename:=FPath & Fname, UpdateLinks:=False, ReadOnly:=True With Workbooks(Fname) 'CB = .BuiltinDocumentProperties("Author") 'CD = .BuiltinDocumentProperties("Creation Date") 'LMB = .BuiltinDocumentProperties("Last Author") LMD = .BuiltinDocumentProperties("Last Save Time") End With Workbooks(Fname).Close savechanges:=False 'Range("A" & LstRow) = Fname 'Range("B" & LstRow) = CB 'Range("C" & LstRow) = CD 'Range("D" & LstRow) = LMB Range("AJ" & LstRow) = LMD End If ActiveCell.Offset(1, 0).Select Loop End Sub
-
There's a formula called Randbetween that lets you set a low and high number between which to randomize your data. That's what I used and then value pasted. So you could do the same on the first day of each month. the issue is when the first day falls on the weekend.
-
try this
Code
Display MoreSub Macro1() Columns("M").Select Selection.TextToColumns Destination:=Range("M1"), DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, Tab:=True, FieldInfo:=Array(1, 4), TrailingMinusNumbers:=True Selection.NumberFormat = "[$-409]d-mmm-yyyy;@" Dim x As String Dim y As Date Dim LR As Long x = InputBox("Enter the from date in format MM/DD/YYYY") y = DateSerial(Right(x, 4), Left(x, 2), Mid(x, 4, 2)) LR = Range("C" & Rows.Count).End(xlUp).Row For i = LR To 2 Step -1 If Cells(i, 13) > y Then Cells(i, 13).EntireRow.Delete End If Next i End Sub
-
see sample. conditional formatting does the highlighting. vlookup does sheet 2
-
-
-
easiest way to arrange your data as show in attached file & then use VLOOKUP/MATCH
-
-
-
Not sure why as it works fine on mine
-