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

[µo°Ý] ¤U©Ô¦¡¿ï³æ¸ê®Æ¨Ó·½¥ÎÅܼÆ

[µo°Ý] ¤U©Ô¦¡¿ï³æ¸ê®Æ¨Ó·½¥ÎÅܼÆ

¤p§Ì·Q³]­p­Ó¤U©Ô¦¡¿ï³æ

¥ý¥Î¿ý»s¥¨¶°¤è¦¡¤F¸Ñ¾Þ§@¤è¦¡¦A°µ·L½Õ

¦ý¸I¨ì¤F¨Ï¥ÎÅܼƴÀ´«ªº°ÝÃD

­ì§@·~Àô¹Ò¬°Excel 2007
¾Þ§@¤U³æ¿ï³æ¨Ï¥Î¤F¤U¤è»yªk
Formula1:="='Substance'!$A2:$A$10"

¦ýµo²{§@·~Àô¹Ò¦pªG¬OExcel 2003
·|µo¥Í¿ù»~¡A¿ï³æ¸ê®Æ¦n¹³¤£¯àª½±µ¥Î§O±iSheet

«á¨Ó·j´M¨ì¥i¥ÎINDIRECTªº¤è¦¡

¿ý»s¥¨¶°±o¨ì¤U¤è»yªk
Formula1:="=INDIRECT(""'Substance'!$A2:$A10"")"

§Ú·Q±NA2:A10¤¤ªº10§ï´«¦¨ÅܼƨӾާ@
e.g. Formula1:="=INDIRECT(""'Substance'!$A2:$A"" &  final_substance  & ")""

¦¹¦CÁ|»yªk¿ù»~

¦ý¤£ª¾«ç»ò­×§ï»yªk

·Ð½Ð¦U¦ì¨ó§U¸Ñ´b

ÁÂÁ¡I¡I¡I
¥Î¥\¨ì¥@¬É¥½¤é¨º¤@¤Ñ¡ã¡ã¡ã

¦^´_ 1# li_hsien


    ¤£¯àÃþ¦ü¹³¤U¦Cªí¥Üªk¶Ü¡H
a = Sheets("Substance").[A2].End(xlDown).Row
ComboBox1.RowSource = "Substance!A2:A" & a

¤U­±³o¥y
Formula1:="=INDIRECT(""'Substance'!$A2:$A"" &  final_substance  & ")""

Âù¤Þ¸¹ªº¥Îªk¤£¹ï¡AÂù¤Þ¸¹¦b¥Î³£¬OÂùÂù¹ï¹ïªº¡A¥t¦b¥¨¶°¤¤¦³³æ¤Þ¸¹( ' )¥X²{"¬Òµø¬°µù¸Ñ"¡A©Ò¥HSubstance³o­Ó¤u§@ªí¥i¥H§â³æ¤Þ¸¹®³±¼ª½±µ¥Î Substance!
¤£¹L§ÚÁÙ¬OÀ°§A­×¥¿¤W¦C»y¥y
Formula1:="=INDIRECT(""Substance!$A2:$A" & final_substance & """)"

TOP

¥»©«³Ì«á¥Ñ li_hsien ©ó 2015-4-21 14:54 ½s¿è

¦^´_ 2# lpk187

ÁÂÁ±zªº¨ó§U¡I¡I¡I

»yªk¥i¥H¤F

¦ý¬O¥LªºÂù¤Þ¸¹¹ïÀ³Ãö«Y§Ú¬Ý¤£¨ìÀ´


§Ú¥ÎÃC¦â±NÂù¤Þ¸¹°Ï¤À¥X¨Ó¡A¤£ª¾¬O¤£¬O³o¼Ë¨â¨â¬Û¹ï


¥t¥~§Ú³o­ÓÀ³¸Ó¤]¤£¬O±z»¡ªº¤U©Ô¿ï³æ
§Ú¬O¦bÀx¦s®æ¤¤¥Î¸ê®ÆÅçÃÒªº¤è¦¡
¾Þ§@¤j­P¦p¤U
  1. With Worksheets("GP³W®æ¤ñ¹ïªí").Range("E4:E" & Range("C65536").End(xlUp).Row).Validation
  2.         .Delete
  3.         .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
  4.         xlBetween, Formula1:="=INDIRECT(""Temp_Substance!$A2:$A" & final_substance & """)"
  5.         .IgnoreBlank = True
  6.         .InCellDropdown = True
  7.         .InputTitle = ""
  8.         .ErrorTitle = ""
  9.         .InputMessage = ""
  10.         .ErrorMessage = "½Ð¥H¤U©Ô¿ï³æ¤è¦¡¿ï¨ú"
  11.         .IMEMode = xlIMEModeNoControl
  12.         .ShowInput = True
  13.         .ShowError = True
  14.     End With
½Æ»s¥N½X
¥Î¥\¨ì¥@¬É¥½¤é¨º¤@¤Ñ¡ã¡ã¡ã

TOP

        ÀR«ä¦Û¦b : ¬°¤H³B¥@­n¤p¤ß²Ó¤ß¡A¦ý¤£­n¡u¤p¤ß²´¡v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD