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 6830943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:40:41+00:00 2026-05-26T22:40:41+00:00

Hi i have 2 worksheets and using one as a form and one as

  • 0

Hi i have 2 worksheets and using one as a form and one as a data sheet

 Dim DataWks As Worksheet
 Dim InputWks As Worksheet

 Set InputWks = Worksheets("Sheet3")
 Set DataWks = Worksheets("Sheet1")

On the form sheet – InputWks it has an oleobject called tbRiskContext

I want the value of this to be placed in the Datawks – Datasheet in a Range called Database
in cell (2,2)

I can put a value in the range by doing

ActiveSheet.Range("DataBase").Cells(2, 2) = "it works"

but how do i get the value from the oleobject to go in Cell(2,2)

Any idea?

  • 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-26T22:40:41+00:00Added an answer on May 26, 2026 at 10:40 pm

    Try the following:

    With DataWks
       .Cells(2, 2) = InputWks.OLEObjects("tbRiskContext").Object.Value
    End With
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 worksheets, I need to update with data from another worksheet I
I have the following code: Private Sub SortWorksheet(ByVal sheet As Worksheet) Dim sStartColumn Dim
I have two worksheets, one which is used to filter the other. Using VBA
Using Rails 3.0.7. I have a simple form which shows all records from one
I am creating an Excel Worksheet from C# using Microsoft.Office.Interop.Excel, and I have not
I have an Excel Workbook that has several worksheets in it. The tables in
I have an Excel 2010 workbook for financial records. On one worksheet, I have
I have an Excel worksheet where the user enters certain data, which I want
i am using the following code to convert an excel set of data on
I'm using the NPOI Library to import some data from an excel sheet to

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.