+ Reply to Thread
Results 1 to 18 of 18

How to Add a String to the beginning of every value in a range

Hybrid View

  1. #1
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to Add a String to the beginning of every value in a range

    This works:

    Set InvoiceNameRng = _
    ThisWorkbook.Worksheets("Sage Import").Range("B2:B" & Range("B2").End(xlDown).Row)
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  2. #2
    Registered User
    Join Date
    01-17-2018
    Location
    Buffalo, New York
    MS-Off Ver
    2016
    Posts
    24

    Re: How to Add a String to the beginning of every value in a range

    Quote Originally Posted by xladept View Post
    This works:

    Set InvoiceNameRng = _
    ThisWorkbook.Worksheets("Sage Import").Range("B2:B" & Range("B2").End(xlDown).Row)
    Oddly enough it works within it's own sub. However, when I next it within the rest of my sub, it halts at row 19 on every page that I try it with. Any idea why that might be?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Add a string between beginning and and of a chain per corresponding code
    By percuk17 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-16-2017, 12:25 PM
  2. Replies: 5
    Last Post: 10-25-2014, 12:35 AM
  3. Move Text From End Of String To Beginning
    By Tellm in forum Excel General
    Replies: 4
    Last Post: 06-28-2013, 06:09 AM
  4. Replies: 5
    Last Post: 09-08-2010, 03:45 PM
  5. Replies: 3
    Last Post: 09-08-2010, 09:49 AM
  6. Add a string at the beginning and end
    By patyandra in forum Excel General
    Replies: 2
    Last Post: 12-05-2009, 07:05 PM
  7. Is there away to add a zero to the beginning of number string?
    By Anthony in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-15-2006, 06:55 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1