Results 1 to 2 of 2

Thread: How to populate a merged cell from a form in excel

  1. #1
    Join Date
    Jun 2009
    Posts
    2

    How to populate a merged cell from a form in excel

    Hi there,

    I'm pretty new at this all but I've asked my office guru's and they couldn't help either.

    I've created a cost estimate template in excel with a form people can fill out for standard info (date, project #, project description etc.). I have it set up that the form populates all the cells no problem except when it comes to merged cells.

    As soon as I try to populate a merged cell I get an error with the "Selection.Characters.Text" portion. (but again, it works fine on non-merged cells)

    is there any other code I could use? txtTitle is the name of the box on the form that needs to populate cell E8 (merged E8 & F8)

    Private Sub txtTitle_Change()
    ActiveSheet.Range("E8").Select
    Selection.Characters.Text = txtTitle
    With Selection.Characters(Start:=1, Length:=90).Font
    .Name = "Arial"
    .FontStyle = "Bold"
    .Size = 20
    End With
    Range("A15").Select


    End Sub

    Thank you so much for any help you can offer. (and if you could try to dumb down your answer it would be much appreciated ;0)

  2. #2
    Join Date
    Jun 2009
    Posts
    2

    Re: How to populate a merged cell from a form in excel

    I should also say I've tried
    ActiveSheet.Cells("E8").Select
    ActiveSheet.Cells(8,5).Select

    and it always has an issue with the "Selection.Characters.Text" line

    Thank you again.

Similar Threads

  1. Replies: 2
    Last Post: 23-02-2012, 05:55 PM
  2. Replies: 2
    Last Post: 21-02-2012, 07:48 PM
  3. How to Auto Populate fields from sub form to form?
    By mich43 in forum Windows Software
    Replies: 6
    Last Post: 09-11-2010, 11:29 PM
  4. How to populate Tables from Excel files?
    By LetsC in forum Windows Software
    Replies: 3
    Last Post: 03-09-2009, 07:59 PM
  5. Auto-populate a MS Word table cell with text from a diff cell?
    By dreamrthts in forum Windows Software
    Replies: 5
    Last Post: 23-03-2009, 10:39 PM

Tags for this Thread

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
  •  
Page generated in 1,713,521,678.50505 seconds with 17 queries