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

¦p¦ó¤j¶q³sµ²sheet¸ÌªºÀx¦s®æ

¦^´_ 10# mark15jill


    ·PÁÂmark15jill¤jªº¦^ÂÐ

¤p§Ìªº¸ô®|¸Ì½T¹ê¤Ö¤F¤@­Ó¤Ï±×½u¡A¦ý¤p§Ì¥[¤F¤§«á¦Arun®É¡A¶W³sµ²ªº¸ô®|¨ÌµM¨S§ï¹L¨Ó¡I

²{¦bªº»yªk¦p¤U¡G
Dim A As Range
Dim B
Dim C
Worksheets("sheet1").Activate
For Each A In Worksheets("sheet1").UsedRange
If InStr(A, "JIS ") And A.Value = "" Then
   B = "C:\11\"
   C = Dir(B, ".PDF")
   A.Hyperlinks.Add A, C & A
   End If
   Next A


©ú©ú¸ô®|¬O"C:\11\"¡A¦ý·Æ¹«´å¼Ð«ü¨ìÀx¦s®æ¦Ó¨q¥Xªº¤p´£¥Ü«o¬Oc:\temp\.......   (¤p§Ì±N³o­ÓexcelÀɲ¾¦Üc:\temp¤º¡^

¦n©_©Ç¡A¤£ª¾­þ¸Ì¥X¤F°ÝÃD¡H

ÁÙ±æ¦U¦ì¥ý¶i¤£§[«ü¾É¡AÁÂÁ¡C
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

¦^´_  mark15jill


    ·PÁÂmark15jill¤jªº¦^ÂÐ

¤p§Ìªº¸ô®|¸Ì½T¹ê¤Ö¤F¤@­Ó¤Ï±×½u¡A¦ý¤p§Ì¥[¤F¤§«á¦A ...
syuan µoªí©ó 2012-11-6 12:11



    ©ú©ú¸ô®|¬O"C:\11\"¡A¦ý·Æ¹«´å¼Ð«ü¨ìÀx¦s®æ¦Ó¨q¥Xªº¤p´£¥Ü«o¬Oc:\temp\.......   (¤p§Ì±N³o­ÓexcelÀɲ¾¦Üc:\temp¤º¡^


§AÀɮצb temp ÁÙ¬O  11©³¤U..

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¥»©«³Ì«á¥Ñ mark15jill ©ó 2012-11-6 15:13 ½s¿è

¥H¤Uµ{¦¡¤À¨â³¡¥÷
1.¦C¥X c:\11\ °ÆÀɦW¬° " .tif  "ªºÀÉ®×
2.¨Ì·Ó©Ò¦C¥X¦WºÙ  +¥H³sµ²
  1. Private Sub CommandButton1_Click()
  2.     With ¤u§@ªí1
  3.     u = 1
  4.     k = 1
  5. '¦¹°Ï°ì¦Cªí
  6.             Dim mFile As String
  7.             mFile = Dir("C:\11\*.tif")
  8.             Do While mFile <> ""
  9.                
  10.                 Cells(u, 1) = mFile
  11.                 mFile = Dir()
  12.                 u = u + 1
  13.                
  14. '¦¹°Ï°ì¶W³sµ²
  15.                 With Worksheets(1)
  16.                     .Hyperlinks.Add .Cells(k, 1), "c:\11\" & Cells(k, 1)
  17.                 End With
  18.                 k = k + 1
  19.             Loop
  20.             
  21.     End With
  22. End Sub
½Æ»s¥N½X

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 12# mark15jill


    §AÀɮצb temp ÁÙ¬O  11©³¤U..

¦^ÂÐmark15jill¤j¡A

¤p§Ì·Q­n³Q³sµ²ªºÀɮשñ¦bC:\11©³¤U¡A¦ÓexcelÀÉ«h¬O©ñ¦bC:\temp©³¤U

¦]¬°¤p§Ì·Q´ú¸Õ¦pªGEXCELÀÉ©ñ¸m¦b§O¥Ø¿ý¤U®É¡A¨º¶W³sµ²¬O§_¤´µM¥i¥H³sµ²¨ìÀɮסC

¦ý¥Ø«e¥H¤p§Ì¼gªº¨º¤@¬q»yªk¬Ý¨Ó¡A¸ô®|¨Ã¨S¿ìªk§ï¹L¨Ó¡C
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

¥»©«³Ì«á¥Ñ mark15jill ©ó 2012-11-6 17:15 ½s¿è
¦^´_  mark15jill


    §AÀɮצb temp ÁÙ¬O  11©³¤U..

¦^ÂÐmark15jill¤j¡A

¤p§Ì·Q­n³Q³sµ²ªºÀÉ®× ...
syuan µoªí©ó 2012-11-6 17:07


Excel ÀÉ®× (¨Ó·½) ©M ³Q³sµ²ÀÉ®×(¥Øªº)
¤£¥Î©ñ¦b¤@°_¤]¥i¥H
¥u­n¸ô®|§ï±¼§Y¥i..

­ì©l³]©w
PDFÀɮצb C:\11\
ExcelÀɮצb C:\temp

°ò¥»¤W°£«D µ{¦¡½X ¦³±NPDF ©M Excel ÂkÃþ¦P¸ê®Æ§¨©³¤U
¤£µMªº¸Ü  ExcelÀɮשҦb¤£¥Î²z·| ( ¸ô®|«ü¦V¶·¥¿½T)
­Y PDF ÀÉ®× ­ì¥»±q C:\11\ §ï¦¨ C:\99\
¥u¶·±N«ü¦VC:\11\  §ï¦¨ C:\99\

´N¦n¤ñ
¤p¾Ç¥Í¤W¾Ç
¾Ç®Õ¬O©T©w¦aÂI
¦ý¤p¾Ç¥Í¥i¯à¦]·h®a¦Ó¾É­P¦a§}¤£¦P

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¥»©«³Ì«á¥Ñ syuan ©ó 2012-11-6 22:26 ½s¿è

¦^´_ 15# mark15jill


    ·PÁÂmark15jill¤jªº¦^ÂÐ

¤p§Ì¤£¦º¤ß¤S¦A¸Õ¤F¤@¤U³o¬q»yªk¡Aµ²ªGµo²{¸Ó¬q»yªk¤´µLªk¾É¥¿¸ô®|¡C

©ú©ú»yªk¼gµÛB="C:\11:\"¡A¦ý±NEXCELÀÉ·h¦Ü§Oªº¥Ø¿ý¤U«á¡A¦bEXCEL¸Ì¨Ã±N·Æ¹««ü¨ìÀx¦s®æ¤Wªº¶W³sµ²¦r¦ê©Ò¨q¥Xªº¤p´£¥Ü¡A
«o¨q¥XC:\JIS1111-1999.PDFªº´£¥Ü¡A¤]´N¬O»¡»yªk¸ÌªºB="C:\11\"¬OµL®Äªº¡C
¤µ¤Ñ¤@¾ã¤Ñ³£¦b¸Õ³o¬q»yªk¡A¤w¸g·Q¤£¥X¨ì©³¬O­þ¸Ì¥X°ÝÃD.....

¤p§Ìªþ¤W³o¬q»yªkªºEXCELÀÉ¡A±æ¦U¦ì¥ý¶i¤£§[±Ð¾É¡C
ÁÂÁ¦U¦ì


Àɮצp¤U¡G
Book1.rar (11.9 KB)
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

¦^´_ 16# syuan
­YBªº¦r¦ê¥Ø¿ý¦s¦b«h¡AC = Dir(B & A)±N·|¶Ç¦^»PA¬Û¦P¦r¦ê§_«h¶Ç¦^ªÅ¦r¦ê
  1. Sub test()

  2. Dim A As Range
  3. Dim B
  4. Dim C

  5. Worksheets("sheet1").Activate
  6. For Each A In Worksheets("sheet1").UsedRange
  7. If InStr(A.Value, "JIS") > 0 And A.Value <> "" Then
  8.     B = "C:\11\"
  9.     A.Hyperlinks.Add anchor:=A, Address:=B & A
  10.     End If
  11.     Next A
  12. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 17# Hsieh


    ·PÁÂHsieh¤j

¤p§Ì¸Õ¤F±zªº³o¬q»yªk¡Aµo²{Àx¦s®æ·|Åܦ¨¤@¾ã¦êªº¸ô®|¥[ÀɦW¡C

¥u¬O¤p§Ì·Q­nªº¬OÀx¦s®æ¦r¦ê¤£ÅÜ¡A¦Ó¶W³sµ²¨ì»yªk¸Ì©Ò«üªº¥Ø¿ý¤U¡A

¦pexcel¸ÌÀx¦s®æªº¦r¬°JISXXXX-1999.PDF¡A¦Ó¶W³sµ²«á¡AÀx¦s®æªº¦r¦ê¤´µM¨SÅÜ¡C

¦Ó¨Ï¥ÎªÌÂIÀ»Àx¦s®æ«á¡A§Y¯à¶}±ÒPDFÀÉ¡C

½Ð°Ý¤p§Ìªº¨º¬q»yªk¸Ì¡A¸Ó­×§ï¬°¤°»ò©O¡H

¥H¤W¡AÁÂÁ¡C
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

¦^´_ 18# syuan


    A.Hyperlinks.Add anchor:=A, Address:=B & A, TextToDisplay:= A
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 19# Hsieh


    ¦^HSIEH¤j

¤p§Ì¦³¥[¤F³o¥y»yªk"A.Hyperlinks.Add anchor:=A, Address:=B & A, TextToDisplay:=A"
µo²{ÁÙ¬OµLªkÅýVBA¥h³sµ²¸ô®|¡A¸ô®|C:\11\¨ÌµM³Qµ{¦¡©¿²¤¹L¥h¡C

¤p§Ìªºµ{¦¡½X¦p¤U¡G

Dim A As Range
Dim B
Dim C

Worksheets("sheet1").Activate
For Each A In Worksheets("sheet1").UsedRange
If InStr(A.Value, "JIS ") > 0 And A.Value <> "" Then
    B = "C:\11\"
    A.Hyperlinks.Add anchor:=A, Address:=B & A, TextToDisplay:=A
    End If
    Next A



¦Ó¦pªG±N³o¥y¸Ìªº If InStr(A.Value, "JIS ") > 0 And A.Value ¡× "" Then§ï¬° If InStr(A.Value, "JIS ") > 0 And A.Value ¡Õ¡Ö "" Then

¨º»ò°õ¦æ«á¡A´N·|¥X²{¤@­Ó¹ï¸Ü®Ø¡A¼gµÛ"°õ¦æ¶¥¬q¿ù»~'5'¡G¡@µ{§Ç©I¥s©Î¤Þ¼Æ¤£¥¿½T

¦Ó³o¥y If InStr(A.Value, "JIS ") > 0 And A.Value ¡Õ¡Ö "" Then´N·|³Qµ{¦¡¤Ï¶À°_¨Ó¡C

¤p§Ì¥Ø«e¤w¸g¥dÃö¤F¡A¤w¸g¤£ª¾¹D¸Ó«ç»ò°£¿ù¡C

ÁÙ±æ¦U¦ì¤j¼w¨ó§U¤@¤U¡A«üÂI¤@¤U¤p§Ì¬Ý¬Ý¬O­þ¸Ì¥X°ÝÃD¡C

·PÁ¦U¦ì¡C
¿ú¬O«Ü±I²öªº¡A©Ò¥H·|·Q¿ìªk»E¦b¤@°_¡I

TOP

        ÀR«ä¦Û¦b : ¦Û¤v®`¦Û¤v¡A²ö¹L©ó¶ÃµoµÊ®ð¡C
ªð¦^¦Cªí ¤W¤@¥DÃD