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

[µo°Ý] EXCEL2010 ·Q§å¦¸¶×¤J¹Ï¤ù

[µo°Ý] EXCEL2010 ·Q§å¦¸¶×¤J¹Ï¤ù

¤p§Ì³Ìªñ¤u§@¤W¹J¨ì¤@­Ó°ÝÃD
¨C­Ó¨®¯¸±¼º£·Ó¤ù¬ù1.2¦Ê±i,¦³6­Ó¨®¯¸
·Ó¤ùÀɮקڤw¸g¨Ì·Ó®É¶¡±Æ¦n¬°001.002.003.........³o¼Ë¤U¥h

VBA­n¦p¦ó¼g¥X§å¦¸¶K¤W???
¦p¹Ï,·í§Ú¿ï¨ìO13³o¨®¯¸,·|¦Û¤v±qO13¸ê®Æ§¨§â·Ó¤ù¦s¨ìÀx¦s®æ,¥B²Å¦XÀx¦s®æ¤j¤p
±qC3¶}©l¤@ª½¶K§¹

ÁÂÁ°ª¤â«e½ú«ü±Ð,§Ú¬Ý¤F¤@¨ÇÃþ¦üªºÁÙ¬O¨S¿ìªk»â®©



¦^´_ 5# lpk187


ÁÂÁ¤j­ô
¤S±Ð§Ú¤@©Û,³o½×¾Â¯uªº³£¬O¦n¤H
§Ú¦b§Oªº½×¾Â³£¨S¤H²z§Ú
§ó¹L¤ÀªºÁÙ¦³¤H¨p«H,»¡2000¤¸´NÀ°§Ú°µ
¯uªº¬O....

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2015-6-14 01:36 ½s¿è

¦^´_ 4# ¬I«Ø°ê

¤£ª¾¹D¬°¦ó¹Ï¤ù¦pªG±q001-102,¥u¦³100.101.102¹Ï¤ù¶K±o¤W
ÀɦW±q101-202´N³£¥i¥H¶K¤W,¬Ý¨Ó....§Ú­n¾Ç²ßªºÁ٫ܦh...

³o¸Ìªº001~099­nÅܦ¨¤å¦r¡A§_«hµ{¦¡Åª¨ú«á«e­±ªº0³£·|¤£¨£¡AÅܦ¨1~99¤F
¥i¥H±j¨î³]¬°¤å¦r¡A¨ä¤èªk¬O¦b¼Æ¶q«e¥[¤W³æ¤Þ¸¹  '   ´N·|Åܦ¨¤å¦r¤F¡A¨Ò¦p '001

TOP

¦^´_ 3# lpk187

ÁÂÁ³o¦ì¤j­ô¼ö¤ß±Ð¾É,¤£¹L¤p§Ì¯uªºÁÙ¬O¸Õ¤£¦¨¥\,¥i¯à§Ú­n¦AºCºCÅé·|
§Ú¥Î¥t¤@¦ì¤j­ô¼gªº,µy§@­×§ï,¦¨¥\ªº²Å¦X§Ú­n¨D

ÁÙ¬OÁÂÁ§Aªº¼ö¤ß,¤×¨ä§Aªº¸Ñ»¡Åý¤£À´±o»yªkªº§Ú¤]·P¨ì§Aªº¶K¤ß
ÁÂÁÂ,³Ì«áªþ¤W§Úªºµ{¦¡½X
  1. Sub ChangeSize()
  2.     Dim Mypath As String, E As Range, MyPic As Object
  3.     Mypath = "C:\Users\Administrator\Desktop\±¼º£\O13\"
  4.     With Sheets("O13")
  5.         .Pictures.Delete
  6.         For Each E In .Range("c3", .Range("c" & .Rows.Count).End(xlUp))
  7.         'For Each  : ¨Ì§Ç³B¸Ì¶°¦Xªº¦¨­û
  8.         '¶°¦Xªº¦¨­û: .Range("a2") ¨ì .Range("a" & .Rows.Count).End(xlUp))ªºÀx¦s®æ
  9.                                      '(±q³ÌÀx¦s®æ©³³¡ªº¦C©¹¨ì¦³¸ê®ÆªºÀx¦s®æ)
  10.             If Dir(Mypath & E & ".jpg") <> "" Then
  11.                 Set MyPic = ActiveSheet.Pictures.Insert(Mypath & E & ".jpg")
  12.                 With MyPic
  13.                     .ShapeRange.LockAspectRatio = msoFalse
  14.                     .Left = E.Cells(1, 1).Left
  15.                     .Top = E.Cells(1, 1).Top
  16.                     .Width = E.Cells(1, 1).Width
  17.                     .Height = E.Cells(1, 1).Height
  18.                 End With
  19.             End If
  20.         Next
  21.     End With
  22. End Sub
½Æ»s¥N½X
¤£ª¾¹D¬°¦ó¹Ï¤ù¦pªG±q001-102,¥u¦³100.101.102¹Ï¤ù¶K±o¤W
ÀɦW±q101-202´N³£¥i¥H¶K¤W,¬Ý¨Ó....§Ú­n¾Ç²ßªºÁ٫ܦh...

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2015-6-12 11:12 ½s¿è

¦^´_ 2# ¬I«Ø°ê

1.¤U­±µ{¦¡½X»Ý¶K¨ìThisWorkbook¤¤¡C
2.¥²¶·­n¦bCÄæ¶K¹Ï³BÁä¤J¹Ï¤ù¦WºÙ¡A¹Ï¤ù¦WºÙ¤£¥Î¥[¤W°ÆÀɦW¡A¹Ï¤ùªº°ÆÀɦW¦bµ{¦¡¤¤³]©w¬°Jpg®æ¦¡¡A­Y¤£¬Oªº¸Ü½Ð¦Û¦æ§ó§ï¡C
3.¹Ï¤ù¦WºÙ°²­Y¬O¯Â¼Æ¦r¡A¦bCÄæ°O±o³]©w¬°¤å¦r®æ¦¡
4.¹Ï¤ùªº¸ê®Æ§¨¥²¶·¦b¦¹Àɮתº¸ê®Æ§¨¤¤«Ø¥ß
  1. Private Sub Workbook_SheetActivate(ByVal Sh As Object)
  2. If MsgBox("¬O§_¶K¹Ï", 4) = vbNo Then Exit Sub
  3. For Each shap In Sheets(Sh.Name).Shapes
  4.     shap.Delete
  5. Next
  6. For Each Rng In Sheets(Sh.Name).Range("C3", Range("c3").End(xlDown))
  7.     Pat = ThisWorkbook.Path & "\" & Sh.Name & "\" & Rng & ".jpg"
  8.     Sheets(Sh.Name).Shapes.AddPicture Pat, True, True, Rng.Left, Rng.Top, Rng.Width, Rng.Height
  9. Next
  10. End Sub
½Æ»s¥N½X

TOP

¤p§Ì§Ñ¤F»¡
·í§Ú¿ï¨ì¨ä¥L¨®¯¸¤]¬O¤@¼Ë¦Û¤v±q¬Û¹ïÀ³ªº¸ê®Æ§¨§â·Ó¤ù¦s¨ìÀx¦s®æ,¥B²Å¦XÀx¦s®æ¤j¤p
¤£¬O¥u¦³O13¤@­Ó¨®¯¸³á!!

TOP

        ÀR«ä¦Û¦b : ¤H­nª¾ºÖ¡B±¤ºÖ¡B¦A³yºÖ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD