Results 1 to 3 of 3

Thread: [RESOLVED] Replacing Select Digits in 5-Digit Number

Hybrid View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2008
    Location
    St. John's, Newfoundland, Canada
    Posts
    965

    Resolved [RESOLVED] Replacing Select Digits in 5-Digit Number

    If I was to replace certain digits within a 5-digit number, how would I do it?

  2. #2
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,969

    Re: Replacing Select Digits in 5-Digit Number

    Quote Originally Posted by JonSea31 View Post
    If I was to replace certain digits within a 5-digit number, how would I do it?
    You need to be more specific but:

    Dim VBForums As String
    VBForums = "12342"
    VBForums = Replace(VBForums, "2", "5")
    MsgBox VBForums

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2008
    Location
    St. John's, Newfoundland, Canada
    Posts
    965

    Re: Replacing Select Digits in 5-Digit Number

    It looks like "Price" is right, as the code works perfectly. All I wanted was a rough idea, and I worked from there. Thanks!

    Thread is now resolved.

Posting Permissions

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



Click Here to Expand Forum to Full Width