Consulting

Results 1 to 3 of 3

Thread: Excel cells into publisher help

  1. #1

    Excel cells into publisher help

    Any advice please

    I have a excel file, cell A1 has the text Item(1)

    I have a mailmerged PUBLISHER file with macro

    Sub exceltopublisher()
    
    With ActiveDocument.MailMerge.DataSource
    Set temp1 = .DataFields.Item(1)
    End With
      
    Dim data As String
    data = temp1.Value
    
    With ActiveDocument.Pages(1).Shapes(1).TextEffect
    .Text = data
    End With
    
    End Sub
    The above macro changes my publisher text shapes(1) to whatever is in excel Cell A2 great, but I cannot figure out how to link the above to cell A3

    Something needs adding to

    Set temp1 = .DataFields.Item(1)
    say Set temp1 = .DataFields.Item(1) ????row(2)?????
    stumped

  2. #2
    anybody throw me a bone here

  3. #3
    Quote Originally Posted by danuk76 View Post
    anybody throw me a bone here
    throwing myself a bone

    was looking for

    activedocument.mailmerge.datasource.activerecord = 2

    found it by using word macro recorder as publisher dont have one

Posting Permissions

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