By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Excel VBA cell referencing

P: 1
i am working an a excel invoice generating sheet.. i came across a problem with vba coding .. the problem is if sheet3 range( A5) is 101 then it should go to sheet1 and get data from sheet1 range ( A1 ) and paste it on sheet3 A6.. can any body pls help me with this ..
May 14 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,356
Are you trying to do this from VBA for MS Excell or another application?
Showing us a snippet of your code or what you tried would people understand what your current position is.

There are a few ways to accomplish this, you can simply use VBA to place the data there or place a formula there so it will always proceed as such.

Try this:
Expand|Select|Wrap|Line Numbers
  1. Worksheets("Sheet3").Select
  2. if Worksheets("Sheet3").range( A5) = 101 then
  3.  Worksheets("Sheet3").range(A6) = Worksheets("Sheet1").range(A1)
  4. end if
May 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.