Results 1 to 5 of 5

Convert formula to values and wrap text automatically

Threaded View

  1. #1
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    224

    Convert formula to values and wrap text automatically

    Hi

    At "BuildMaster" sheet, when user updates hostname and IP address, automatically concatenate at column F12.

    Would like to incorporate the below formula at Column F and then convert to value and also would like to automatically merge column D and Column F after double click the last row in macros.
    =IF(BuildMaster!$B12<>"",BuildMaster!$B12&" "&CHAR(10)&BuildMaster!$C12,"")

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Dim LR As Integer
    If Target.Column > 1 Then Exit Sub
    Cancel = True
    If MsgBox("Do you want to insert a new row below this row?", vbYesNo) = vbYes Then
    Target.Resize(1, 14).AutoFill Destination:=Range(Target, Target.Offset(1, 13)), Type:=xlFillDefault
    Target.Offset(1, 0).Resize(1, 2).ClearContents
    Target.Offset(1, 1).Resize(1, 2).ClearContents
    End If
    LR = Empty
    End Sub

    I have set the marcos but tried to incorporate both requirements inside but it doesn't work as I still new to macros.
    Would appreciate your assistance on this form. Thank you.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-05-2016, 05:49 PM
  2. Replies: 3
    Last Post: 02-03-2016, 09:22 PM
  3. [SOLVED] Wrap Text in ListView: how to wrap text in the columns of a list view
    By TommyToe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 07:02 AM
  4. How to automatically wrap text like a word doc?
    By Sugartit in forum Excel General
    Replies: 3
    Last Post: 11-14-2011, 04:27 AM
  5. Automatically Resize Row Height for Text Wrap
    By driffert in forum Excel General
    Replies: 0
    Last Post: 02-25-2009, 10:28 AM
  6. Text wrap and allow cell height to increase with wrap
    By tpenterprize in forum Excel General
    Replies: 1
    Last Post: 10-19-2007, 02:30 PM
  7. Text Wrap, Cell Height Does NOT Automatically Adjust
    By Al Franz in forum Excel General
    Replies: 1
    Last Post: 01-24-2005, 10:07 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