Macro to edit cell

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

I would like to write a macro that edits the first 6
digits of a cell but leaving the last 6 digits as is.
 
something like
for each c in selection
c.value="123456"&right(c,len(c)-6)
next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Truncating a VIN 3
Edit Macro 1st time use 1
display month only 6
date entry 20
Moving a bunch of data 1
Excel Run macro upon cell edit 0
change certain cell colours in VBA 2
The Epic Games Store's first big sale 0

Back
Top