Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Can someone help please
I would like for it to look at sheet2 and see if "V014989" Is in the column A Row 2:65535 Private Sub StoreAccountNumbers() On Error Resume Next With ActiveSheet If .Range("B3").Value = "V014989" Then .Name = "101_" & Format(Now(), "[$-409]yyyymmdd;@") ElseIf .Range("B3").Value = "V014990" Then .Name = "102_" & Format(Now(), "[$-409]yyyymmdd;@") End If End With With ActiveSheet If .Range("B3").Value = "V014991" Then .Name = "103_" & Format(Now(), "[$-409]yyyymmdd;@") ElseIf .Range("B3").Value "V014991" Then .Name = "Unknown_" & Format(Now(), "[$-409]yyyymmdd;@") End If If Err.Number < 0 Then MsgBox Err.Number & " -- " & Err.Description End If On Error GoTo 0 End With 'PromptForSave 'SaveWorkbookToFolder End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VB code to copy sheet format to another sheet | Excel Discussion (Misc queries) | |||
Why code for find() is not working | Excel Discussion (Misc queries) | |||
to find number of days between 2 dates using vba code in excel | Excel Discussion (Misc queries) | |||
how do i create an access code sheet to number my office files an. | New Users to Excel | |||
Find all text instances in a sheet and add one number from each row | Excel Discussion (Misc queries) |