Results 1 to 7 of 7

Thread: tabang sa macro

  1. #1

    Default tabang sa macro


    guyz tabangi ko aning macro beh, unsaon pgcopy sa cell sa pikas nga excel file to another excel file using macro, not using link...TIA

  2. #2
    C.I.A. cliff_drew's Avatar
    Join Date
    Oct 2008
    Gender
    Male
    Posts
    4,571
    Blog Entries
    2
    You mean copy content from from one excel file to another?

  3. #3
    Quote Originally Posted by cliff_drew View Post
    You mean copy content from from one excel file to another?
    not all, but selected ra...

  4. #4
    up ko ani, kinsa kabalo...

  5. #5
    Sub CopyToOtherWB()
    Dim TargetWb As Workbook
    Dim TargetSh As Worksheet
    Dim CopyFrom As Range
    Dim DestCell As String
    Dim InputSh As Worksheet

    Set TargetWb = Workbooks("Book2.xls") ' Change to suit
    Set TargetSh = TargetWb.Worksheets("Sheet1")
    Set InputSh = ThisWorkbook.Sheets("Sheet1") ' Change to suit
    Set CopyFrom = InputSh.Range("A2:F2")

    DestCell = InputSh.Range("A1").Value
    CopyFrom.Copy Destination:=TargetSh.Range(DestCell)

    End Sub

  6. #6
    thanks...try ni nko tomorrow..

  7. #7
    Quote Originally Posted by michaelocana View Post
    Sub CopyToOtherWB()
    Dim TargetWb As Workbook
    Dim TargetSh As Worksheet
    Dim CopyFrom As Range
    Dim DestCell As String
    Dim InputSh As Worksheet

    Set TargetWb = Workbooks("Book2.xls") ' Change to suit
    Set TargetSh = TargetWb.Worksheets("Sheet1")
    Set InputSh = ThisWorkbook.Sheets("Sheet1") ' Change to suit
    Set CopyFrom = InputSh.Range("A2:F2")

    DestCell = InputSh.Range("A1").Value
    CopyFrom.Copy Destination:=TargetSh.Range(DestCell)

    End Sub
    thanks bro...but dli lng mofunction ug sakto..but, thanks...nana ko idea unsaon...

  8.    Advertisement

Similar Threads

 
  1. Bro tabang sa virus di ko ka sud akong hard disk!!!
    By v2s13 in forum Software & Games (Old)
    Replies: 33
    Last Post: 11-20-2007, 01:54 PM
  2. MOVED: Bro tabang sa virus di ko ka sud akong hard disk!!!
    By vern in forum Networking & Internet
    Replies: 0
    Last Post: 10-27-2007, 01:57 PM
  3. tabang..sa-un nku pag-upgrade saku status?
    By dada in forum Support Center
    Replies: 8
    Last Post: 07-19-2006, 11:19 PM
  4. tabang sa leyte CONCERT!!!......
    By baliguat in forum Music & Radio
    Replies: 24
    Last Post: 02-27-2006, 09:46 PM
  5. tabang sa ako iro..
    By dirk14 in forum Pet Discussions
    Replies: 8
    Last Post: 01-05-2006, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top