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

  • Home
  • SEARCH
  • 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 6162905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:44:08+00:00 2026-05-23T21:44:08+00:00

I have a column ‘A’ in worksheet ‘two’ and another column ‘B’ in worksheet

  • 0

I have a column ‘A’ in worksheet ‘two’ and another column ‘B’ in worksheet ‘one’ !

I want to copy the conditional formatting of Column A in two to Column B in one !

Basically, I want to copy everything from Column A in two to Column B in one except the data !

Please help !!

I have :

sheetA & sheetB object as Objects in my code
I am using VB.NET

I am a newbie in Vb.net – Please Help !

  • 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-05-23T21:44:10+00:00Added an answer on May 23, 2026 at 9:44 pm

    Here’s a bit of a push:

        oExcel = CreateObject("Excel.Application")
        Book = oExcel.Workbooks.Open("C:\Users\Jonathan\Documents\Test2.xlsx")
        Sheet = Book.Worksheets(1)
        SourceRange = Sheet.Range("A1:A" & Sheet.Range("A1").End(Excel.XlDirection.xlDown).Row)
        DestRange = Sheet.Range("D1:D" & Sheet.Range("D1").End(Excel.XlDirection.xlDown).Row)
    

    The meat of it is this part, where you take the format conditions from one range and add it to the other. This assumes there is only one criterion for formatting. More than one would require that you would step over all of them (I think there are up to 3) by using SourceRange.FormatConditions(i) in a loop from 1 to SourceRange.FormatConditions.Count

        DestRange.FormatConditions.Add(Excel.XlFormatConditionType.xlCellValue, SourceRange.FormatConditions(1).Operator, SourceRange.FormatConditions(1).Formula1)
        DestRange.FormatConditions(1).Interior.ColorIndex = SourceRange.FormatConditions(1).Interior.ColorIndex
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables. In one I have column like INT and in other
I need a select from table which does not have column that tells when
I have a column which has a datatype : datetime. But now i want
I have column called 'last updated' of this format: 2009-10-13 09:20:30 and I want
I have column in table where i store tag ids as 1|5|10 I want
I have column in database ID From To s1from s2to s2price fare 1 Delhi
So I have column 'CLM' in the table where one record has follow value:
Say I have two tables, owner and dog . Both have column name ,
I have SQL table in which I have column and Probability . I want
I want to have column names on each page of the xtable. \documentclass{article} \usepackage{graphicx}

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.