ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦sÀɮɡA¦Û°Ê¥[¤J¦sÀɮɪº¤é´Á

Sub §ï¦W()
Name "c:\aaa.xlsx" As "c:\aaa" & "_" & Format(Date, "yyyymmdd") & ".xlsx"
End Sub

TOP

¥»©«³Ì«á¥Ñ downling ©ó 2011-11-11 08:39 ½s¿è

¦^´_ 11# oobird

ÁÂÁ±zªº¦^´_
¤£¹Loobird ª©¤j±z³oµ{¦¡¬O¥u¦³§â¤é´Á¥[¤W¥h¦Ó¤w³á

¤p§Ì®³¨ìªºÀɦW¨Ã¨S¦³©T©w¡A©Ò¥HÁÙ¦³ÀɮצWºÙ¸ò¸ô®|ªº­nÂ^¨ú¡A³o³¡¥÷¤W­±¤p§Ì¤w¸g¦³¼g¥X¨Ó¤F
¥[¤W¤p§Ì¦³®É®³¨ìªº¨Ã«D­ì©lÀɦӬO­×§ï¹L¤w¸g¥[¤W¤é´ÁªºÀÉ®×
©Ò¥H·Q°Ý¤@¤U¬O¤£¬O¦³§PÂ_°ÆÀɦW«e¦³¨S¦³¤é´Áªº¼gªk
¦pªG¨S¦³´N¥[¤W¤µ¤Ñ¤é´Á
­Y¦³«h­×§ï¦¨¤µ¤Ñ¤é´Á

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2011-11-12 09:12 ½s¿è

¦^´_ 12# downling
³o³Ì¦n¯à¦³§A¹ê»Ú²£¥Í¥X¨ÓªºÀɮצWºÙ§@°ò·Ç¤~¦n¼gµ{¦¡,
¦b¦¹°²³]§AªºÀɮצWºÙ¤£ºÞ¦³¨S¦³¤é´ÁÀɦW¤¤³£¤£·|¥X²{ 201 ³o­Ó¼Æ¦r(9 ¦~«á½Ð¦A¦Û¤v§ï¦¨ 202),
¨º»ò´N¥i¥H¥Î 201 §@¬°§PÂ_¬O§_ÀɦW¤w¦³¤é´Áªº¨Ì¾Ú,
¦³ 201 ´N¥Î¤µ¤Ñ¤é´Á¨ú¥N 2 ¶}©lªº 8 ­Ó¼Æ¦r,
¨S¦³´N¥[¤W¤é´Á.

·íµM, ¦pªGÀɦW¤¤¦³¥i¯à¥X²{ 201 ,
¨º»ò¼gªk¤S·|¦³©Ò¤£¦P¤F,
³o´N¬O»Ý­n¦³§A¹ê»Ú²£¥Í¥X¨ÓªºÀɮצWºÙ§@°ò·Çªº­ì¦].

TOP

¦^´_ 8# downling


   ­è­è§ï¤F¤@¤U, ¬O³o¼Ë¶Ü?
  1. Sub TD()

  2.    Myname = Application.ActiveWorkbook.FullName
  3.    
  4.    Mypos = InStr(1, Myname, "_", 1)
  5.      
  6.    Application.DisplayAlerts = False
  7.      
  8.    If Mypos = 0 Then
  9.   
  10.        ActiveWorkbook.SaveCopyAs Replace(Myname, ".xls", "_" & Format(Date, "yyyymmdd") & ".xls")
  11.    
  12.    Else
  13.    
  14.      Newname = Mid(Myname, 1, Mypos - 1)
  15.      
  16.      ActiveWorkbook.SaveCopyAs Newname & "_" & Format(Date, "yyyymmdd") & ".xls"
  17.      
  18.    End If
  19.      
  20.    Application.DisplayAlerts = True
  21.    
  22. End Sub
½Æ»s¥N½X

TOP

¦^´_ 13# luhpro

°ò¥»¤WÀɦW°£¤F¤é´Á¥~¬O¤£·|¦³¨ä¥Lªº¤@³s¦ê¼Æ¦r
½Ð°Ý¤@¤U­n¥Î¨ººØ§t¼Æ°µ201¼Æ¦rªº§PÂ_?

¦^´_ 14# mike.lee

½Ð°Ýmike.lee
InStr¯à±q«á­±©¹«e§ä¶Ü?
¦]¬°¦³¨Ç¤H³ßÆ[¥Î"_"°µ¬°ªÅ®æ

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-11-14 11:06 ½s¿è

¦^´_ 15# downling
  1. Sub Ex()  'StrReverse¨ç¼Æ -> ¶Ç¦^«ü©w¦r¦êªº¦r¤¸¶¶§Ç¬O¤Ï¦Vªº¡C
  2.     Dim A, X
  3.     A = "A_120_78_9"
  4.     X = A Like "*120*"    '§ä¨ì¶Ç¦^ True ¤Ï¤§¶Ç¦^ False
  5.     MsgBox X   
  6.    X = InStrRev(A, "_")    '¥Ñ¥ª¥k¦V¥ª·j´Mªº¦r¦ê¹Bºâ¦¡
  7.     MsgBox X
  8.    A = StrReverse(A)
  9.     X = InStr( A, "_")  '¥Ñ¥ª¦V¥k·j´Mªº¦r¦ê¹Bºâ¦¡
  10.     MsgBox X
  11. End Sub
½Æ»s¥N½X
  1. Sub Ex()     ''InStr  ,    InStrRev  ¥Îªk¤£¦P
  2.     Dim A, X, C
  3.     A = "A120_78_9"
  4.      'InStr([start, ]string1, string2[, compare])
  5.     '      start= C    string1= A     'string2="_"
  6.     C = 1                   '³]©w±q²Ä´X­Ó¦r¥À¶}©l´M§ä
  7.     'X = InStr(A, "_")      '¨S«ü©wC ¹w³]¬°1
  8.     X = InStr(C, A, "_")  '¥Ñ¥ª¦V¥k·j´Mªº¦r¦ê¹Bºâ¦¡
  9.     MsgBox X
  10.     'InstrRev(stringcheck, stringmatch[, start[, compare]])
  11.     '    stringcheck= A   'stringmatch="_"  Start= C
  12.     C = Len(A)                 '³]©w±q²Ä´X­Ó¦r¥À¶}©l´M§ä
  13.     'X = InStrRev(A, "_")      '¨S«ü©wC ¹w³]¬°¦r¦êªºªø«× Len(A)  
  14.     X = InStrRev(A, "_", C)  '¥Ñ¥k¦V¥ª·j´Mªº¦r¦ê¹Bºâ¦¡
  15.     MsgBox X
  16. End Sub
½Æ»s¥N½X

TOP

¦^´_  luhpro

°ò¥»¤WÀɦW°£¤F¤é´Á¥~¬O¤£·|¦³¨ä¥Lªº¤@³s¦ê¼Æ¦r
½Ð°Ý¤@¤U­n¥Î¨ººØ§t¼Æ°µ201¼Æ¦rªº§PÂ_?
...
downling µoªí©ó 2011-11-14 09:26

§âÀɦW©ñ¶i¦r¦êÅܼƸÌ,
µM«á°Ñ·Ó¤W­±ªº¤è¦¡¨Ï¥Î Instr §äÀɦW(¤£§t¥Ø¿ý)¦r¦ê¤º¦³¨S¦³ "201" ´N¥i¥H¤F.

TOP

¦^´_ 15# downling


   ·PÁÂGBKEE ¤j¤j¸Ô²Óªº»¡©ú,

¦pªG"_"«DÀɦW¤º°ß¤@¦r¤¸,¤W­±µ{¦¡´NµLªk¨Ï¥Î,´N¥²¶·¦pluhpro ¤j¤j©Ò»¡ªº,
§Q¥Î"201"¦r¦ê,§PÂ_¬O§_¦s¦b?¦A°µÀɦWªº¨ú±Ë.

TOP

ÁÂÁ¦U¦ì¤j¤jªº°Q½×,¬Oªì¾ÇªÌªººÖ­µ¡C

TOP

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD