Results 1 to 8 of 8

copy cell value from a workbook in a remote computer

Threaded View

  1. #1
    Registered User
    Join Date
    09-14-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    6

    copy cell value from a workbook in a remote computer

    I have a macro that copies the value of a cell located in a remote workbook to Q13, the cell in BOM sheet cell K44 is the total cell of the column and it can move down if I add a row to the table. If no row is added the macro works perfectly, but when I add a row to the table the cell does not update the value to the new position of the total "K45"
    I am new to vba and I haven't been able to figure it out this one, can someone help please.


    Private Sub CommandButton5_Click()
     For i = 10 To 10
        FldrName = Cells(5, i).Value
        Application.EnableEvents = False
       Application.ScreenUpdating = False
       Application.DisplayAlerts = False
    'Workbooks.Open "\\Server-Master\D\Engineering Drawings\" & FldrName & "\BOM -" & FldrName & ".xlsx"
    Workbooks.Open "D:\Engineering Drawings\" & FldrName & "\BOM -" & FldrName & ".xlsx"
    ThisWorkbook.Sheets(Format(Range("E8").Value)).Range("Q13").Value = ActiveWorkbook.Sheets("BOM").Range("K44").Value
    Application.DisplayAlerts = True
    ActiveWorkbook.Close False
    Application.ScreenUpdating = True
    Application.EnableEvents = True
    Next
    End Sub
    Last edited by alansidman; 10-01-2013 at 08:57 PM. Reason: added code tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 08-24-2012, 11:29 AM
  2. Pass CAC credentials to remote computer
    By mevasquez in forum Excel General
    Replies: 2
    Last Post: 07-19-2011, 10:08 AM
  3. Does an add-in script executes from a remote computer?
    By hraza in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2009, 07:13 AM
  4. Access a remote computer?
    By S. Anders in forum Excel General
    Replies: 0
    Last Post: 02-25-2005, 10:02 AM
  5. [SOLVED] Calling a macro on a remote computer
    By Maury Markowitz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-10-2005, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1