Results 1 to 2 of 2

Thread: Reference to header instead of hardcoding column letter?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Reference to header instead of hardcoding column letter?

    Hi all, Instead of hardcoding "G", "E", and "F", is there a way to make the VBA codes to use the headers? For example, The header for G is apple, E is orange, and F is banana. [ CODE ] Dim iFor i = 2 To Cells(Rows.Count, "A").End(xlUp).Row Cells(i, "G").Value = Cells(i, "E").Value & " " & Cells(i, "F").ValueNext i[ /CODE ]
    Last edited by doctortt; 11-26-2013 at 08:26 AM.

Posting Permissions

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