سلام
برامن كه نميشه
اين پيغام رو ميده :
برامن كه نميشه
اين پيغام رو ميده :
Private Sub CommandButton1_Click() Application.ScreenUpdating = False Dim wbMe As Workbook Dim wsNew As Worksheet Dim w As Integer Dim wbURL As Workbook Dim url As String Set wbMe = ThisWorkbook url = "http://members.tsetmc.com/tsev2/excel/MarketWatchPlus.aspx?d=0" Set wbURL = Workbooks.Open(url) '## Add a new worksheet to the end of ThisWorkbook:' Set wsNew = wbMe.Sheets("[COLOR=#ff0000]bors[/COLOR]") wsNew.Activate '## Copy & Paste this data in to our new worksheet:' wbURL.Sheets(1).Cells.Copy Destination:=wsNew.Range("A1") wbURL.Activate '## Close the downloaded version which we no longer need:' wbURL.Close [COLOR=#00ff00]Sheet1.Select[/COLOR] Application.ScreenUpdating = True MsgBox
sub repeat() d= now + timevalue ("00:00:00") application.ontime d, "macroe1" end sub
workbook_open call "macroe1" end sub
Private Sub CommandButton1_Click() Application.ScreenUpdating = False Dim wbMe As Workbook Dim wsNew As Worksheet Dim w As Integer Dim wbURL As Workbook Dim url As String Set wbMe = ThisWorkbook url = "http://members.tsetmc.com/tsev2/excel/MarketWatchPlus.aspx?d=0" Set wbURL = Workbooks.Open(url) '## Add a new worksheet to the end of ThisWorkbook:' Set wsNew = wbMe.Sheets("bors") wsNew.Activate '## Copy & Paste this data in to our new worksheet:' wbURL.Sheets(1).Cells.Copy Destination:=wsNew.Range("A1") wbURL.Activate '## Close the downloaded version which we no longer need:' wbURL.Close Sheet1.Select Application.ScreenUpdating = True MsgBox "your process has been done successfully and your file Updated " End Sub
کامنت