Solved: Macro excell 2k3 help with including "IF"

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Iggzik

Thread Starter
Joined
Feb 10, 2013
Messages
6
Hello,
this is what i recorded, it contains what it should do, missing only "choose / if" part for highlighted parts.
Im noob in programming macros here so i need your help :eek:
Thanks in advance for any help. Have fun

Sub TESTCOPYPASTE()
'
'
'

'
Range("B10").Select
ActiveCell.FormulaR1C1 = "NYI" in this B10 cell will be value (ana/bos/buf....) and i need macro to lookup that value in worksheets and do the rest what already is here
Range("B11").Select
Sheets("NYI").Select
Range("B7:L31").Select
Selection.Copy
Sheets("Calculator").Select
Range("B58").Select
ActiveSheet.Paste
Sheets("NYI").Select
Range("S7:AC31").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Calculator").Select
Range("B29").Select
ActiveSheet.Paste
Range("K10").Select
Application.CutCopyMode = False
Selection.ClearContents
ActiveCell.FormulaR1C1 = "CAR"
Range("K11").Select
Sheets("CAR").Select
Range("B7:L31").Select
Selection.Copy
Sheets("Calculator").Select
Range("B112").Select
ActiveSheet.Paste
Sheets("CAR").Select
Range("S7:AC31").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Calculator").Select
Range("B85").Select
ActiveSheet.Paste
End Sub
 

Iggzik

Thread Starter
Joined
Feb 10, 2013
Messages
6
ok, found it through google

Sheets(Range("B10").Value).Select

thx for your time anyway, have a nice day
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top