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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:14:05+00:00 2026-05-20T14:14:05+00:00

In my worksheet some cells values are based on other cells Info worksheet A1:

  • 0

In my worksheet some cells values are based on other cells

Info worksheet
A1: 5
B1: =A1
Design worksheet
A1:

Is there a way to copy and read the value in B1? I’m trying to use the value in a for loop, with no luck.

Sheets("Info").Select
For i = 1 to 5
    If Range("B" & i).Value <> 0 Then
        Range("B" & i).Copy Destination:=Sheets("Design").Range("A" & x)
        'Sheets("Design").Range("A" & x).Value = Sheets("Offerte").Range("B" & i).Value
        x = x + 1
    End If
Next i
  • 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-20T14:14:06+00:00Added an answer on May 20, 2026 at 2:14 pm

    Your example doesn’t seem to match the code well. The line

    If Range("B" & i).Value = 1 Then
    

    means that nothing will be copied in your example. It’s looking for a cell with 1 in it. Why do you need that If statement at all?

    EDIT I am guessing you’re just checking that there’s something in the cell to copy? I would probably do it this way:

    If Trim(Range("B" & i).Value) <> "" Then
    

    Also – did you miss out setting x=1?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that autofilters a worksheet based on either the first criteria,
Need some help finding the max value in a worksheet, I tried with range:
I have some trouble trying to get the values of the first column with
I'm writing a script for a worksheet whose cells are populated based on an
I have some data in an Excel Worksheet. I would like to select all
I can use properties of an Excel Worksheet to tell if the worksheet is
When I use the PrintOut method to print a Worksheet object to a printer,
I have a protected worksheet that users would like to copy and paste into.
I want to add some VBA code when the value in a cell changes.
Say I have a Range object for cells A1:A10 in my worksheet. These cells

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.