Consulting

Results 1 to 7 of 7

Thread: Macro In .xlt File Won't Work In .xls File?

  1. #1

    Macro In .xlt File Won't Work In .xls File?

    This file is initially saved as a template (.xlt) file. This code works if I right-click and open the template and enter data, but when I just double click and open, causing it to open as an .xls file, it doesn't work. (The textboxes are inserted textboxes not from a userform).

    VBA:
    
    Option Explicit Sub Text_Copy() With Worksheets("Description") Worksheets("Summary").Shapes("TextBox3").TextFrame.Characters.Text = .Shapes("TextBox1").TextFrame.Characters.Text & " " & .Shapes("TextBox2").TextFrame.Characters.Text End With End Sub
    I appreciate any help.

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,086
    Location
    Hi Marshman99ca,

    Please post your book so we can see the whole issue.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    VBAX Tutor
    Joined
    Dec 2006
    Posts
    220
    Location
    This has been Cross Posted here.
    http://www.ozgrid.com/forum/showthread.php?t=67612
    "Intellectual passion occurs at the intersection of fact and implication."

    SGB

  4. #4
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,086
    Location
    and cross asked here too...

    http://vbaexpress.com/forum/showthread.php?t=12450

    Still there's hope that by posting the workbook we can get around this issue.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  5. #5
    I am new to these forums, but I have the feeling that this is a bad thing?? I was unaware. In future I will only post on one forum.

  6. #6
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,086
    Location
    That's okay, it's not a hanging offence (so I've been told). If you refer to your other thread I think you might have an answer. When i copied your code to a module I immediately got a "Syntax" error on the With Worksheets line.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  7. #7
    Thank you AussieBear, I have been travelling all day and am just getting back to this now and I do see another reply on Mrexcel.com.
    I need to get good, really good, at Excel and VBA so we'll be chatting in the future.

Posting Permissions

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