Hi
Try this again
Sub SaveFile()
Dim NameFile As Variant
With Worksheets("Sheet1")
NameFile = .Range("A1") & "_" & .Range("B1") & "_" & .Range("C1") & ".xls"
End With
NameFile =...
Hi and welcome
Try this code
Sub SaveFile()
Dim NameFile As String
With Worksheets("Sheet1")
NameFile = .Range("A1") & "_" & .Range("B1") & "_" & .Range("C1") & ".xls"
End With
ThisWorkbook.SaveAs Environ("USERPROFILE") &...
Hi
To write only in visibl worksheets
Dim Sh As Worksheet
For Each Sh In ThisWorkbook.Worksheets
If Sh.Visible Then Sh.Range("D2").Value = "LC"
Next Sh
Hi kaushik03, Luke M
@ kaushik03
"he is our one of the VBA champs of this forum"
That's a very big word. No I'm still begginer and each day a learn something new
Hope that Luke M analysis was clear.
Regards
Hi, Adapte this code to your sheet
Sub DeleteRows()
Dim LastLig As Long
Dim c As Range
Application.ScreenUpdating = False
With Worksheets("Sheet1") 'Adapte to your sheet name
LastLig = .Cells(.Rows.Count, "A").End(xlUp).Row
Set c =...
Hi, I thought that you can adapte to your file
Change lines like this
Case 3, 9: Tmp(j, Row_Counter) = CDbl(Row_Array(i, j))
Then to format onlu column 3 and 9
'....
.Offset(0, 2).Resize(Row_Counter, 1).NumberFormat = "mm/dd/yyyy" 'columns 3 and 9 are dates
.Offset(0...