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

[µo°Ý] ½Ð°ÝCall «ü¥Oªº¸ê®Æ¤¬¥Î

[µo°Ý] ½Ð°ÝCall «ü¥Oªº¸ê®Æ¤¬¥Î

½Ð°ÝCall «ü¥Oªº¸ê®Æ­n¦p¦ó¤¬¥Î¡C

¦p¡G
sub SubA()

FileName1 = "X1.xlsm"
SheetNumber = 5
call SubB
end sub

Sub SubB()
Windows(FileName1).Activate     
Sheets(SheetNumber).Select
End Sub

½Ð°Ý¦¹®Éªº FileName1 »P SheetNumber ­n¦p¦ó±qSubA ±a¤J SubB

ÁÂÁ¡ã

¸Õ¥X¨Ó¤F¡A

Call Sub(FileName1, SheetNumber)

§Y¥i¡ã

TOP

¦^´_ 2# cji3cj6xu6
  1. Option Explicit
  2. Sub SubA()
  3.     Dim FileName1 As String, SheetNumber As Integer
  4.     FileName1 = "X1.xlsm"
  5.     SheetNumber = 5
  6. SubB FileName1, SheetNumber
  7. End Sub
  8. Sub SubB(°Ñ¼Æ1 As String, °Ñ¼Æ2 As Integer)
  9.     Windows(°Ñ¼Æ1).Activate
  10.     Sheets(°Ñ¼Æ2).Select
  11. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

ÁÂÁÂg¤jªººë½T»yªk¡ã

TOP

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD