+ Reply to Thread
Results 1 to 3 of 3

Macro pasting links instead of values

Hybrid View

  1. #1
    Registered User
    Join Date
    04-26-2011
    Location
    Tempe Az
    MS-Off Ver
    Excel 2003
    Posts
    3

    Macro pasting links instead of values

    I need to move data from one workbook to another. The sheet I am moving from has links to another sheet in the workbook. It moves the data fine, but it moves it as links instead of values. Here is the code I am using. does anyone have any ideas on how to correct this issue?

    Sub WriteToLog_v2()
    Dim curName As String
    Dim nxtRw As Integer
    curName = ActiveWorkbook.Name
    'Open Master Workshop List.xls (Hidden if saved Hidden)
      Workbooks.Open Filename:="C:\Documents and Settings\64h9978\my documents\excel\master workshop list.xls"
    'Determine next empty row in master workshop list.xls
       nxtRw = Workbooks("master workshop list.xls").Sheets(1).Range("A" & Rows.Count).End(xlUp).Row + 2
    'Copy Activeworkbook row to to log.xls
        Workbooks(curName).Sheets(3).Rows("1:8").Copy _
                            Destination:=Workbooks("Master Workshop List.xls").Sheets(1).Rows(nxtRw).pastelink = False
                            
                            Application.CutCopyMode = False
                  
    'Save and close log.xls
           Workbooks("Master Workshop List.xls").Save
           
    End Sub

  2. #2
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Macro pasting links instead of values

    Does copy paste value work instead of "pastelink"

    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False

  3. #3
    Registered User
    Join Date
    04-26-2011
    Location
    Tempe Az
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro pasting links instead of values

    Where would that go in the code?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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