Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8789133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:19:03+00:00 2026-06-13T22:19:03+00:00

Hello everyone I use Excel 2010 with VB Ok so I have an issue

  • 0

Hello everyone I use Excel 2010 with VB

Ok so I have an issue where I have to copy the bolded cells value from a column into another column AND the same value to be copied until it hits the row with the bolded cell value again and then that value takes over and is copied until another bolded value etc AND when copying the first 2 digits of a number (or characters as I think the numbers are stored as text) are to be deleted.

Can this be done?

I found this code for the copying bolded values into another column:

Sub yTekhed()
    For Each cell In [A30:A2557]
        If cell.Font.Bold = True Then
            Debug.Print cell.Row
            cell.Copy Range("I" & Range("I65536").End(xlUp).Row + 1)
        End If
    Next cell
End Sub

I figured out the deleting characters, there is a formula =RIGHT(A1; LEN(A1)-2)

But that is as far as I got

I still can’t copy bold over regular. So say I have:

08479

code

082222

093334

084213

08572

code

093212

012321

482123

I want the paste to look like

08479

08479

08479

08479

08572

08572

08572

08572

So paste the bold value over every regular (non bold) value until the next bold value then copy that one and then paste that value over regular values. Hope this explains it a bit better.

Any help would be greatly appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:19:04+00:00Added an answer on June 13, 2026 at 10:19 pm

    This should do the trick:

    Sub yTekhed()
        LastRow = Cells(Rows.Count, "A").End(xlUp).Row
    
        For i = 1 To LastRow
            If Range("A" & i).Font.Bold = True Then
                Range("A" & i).Copy Range("B" & i)
                x = i
            Else
                Range("A" & x).Copy Range("B" & i)
            End If
        Next i
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello everyone, I have some confusion regarding some Win32 API data types and macros
Hello everyone I have a problem. I want to do a GridView with a
Hello everyone I use MongoDB find() method like this: $cursor = $collection->find(); foreach($cursor as
hello everyone im trying to create this tweak that copies a file from one
Hello everyone (this is my first post) I have some simple AD code that
Hello everyone it's been some days that I use sql to make analysis and
Hello everyone and thanks in advance for reading this.. I have the following html
Hello everyone! I have a website which is http://www.urbanelementz.ca ... It's currently in development.
Hello everyone I have a difficult problem with using BULK INSERT command when I
Hello everyone I have converted a project in C# to F# that paints the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.