If you have assign a non-default name to the sheet, then you can use it to address the sheet:
Sheets("Datainput").Range(
Alternatively you can use the numerical index.
Sheets(2).Range("E3").Valu
Main Topics
Browse All TopicsI get this error when I use this code
Sheets("Sheet2").Range("E3
Basically I think the problem is with the Sheets command. When I type Sheets("Sheet2").Name in the immediate window it gives nothing , even though the name of Sheet 2 of the workbook is Datainput. On the other hand when i type ThisWorkBook.Name I get the correct name of the workbook I want . Even so the VBA code blows up when I then want to get the correct sheet within the workbook.
I am still a beginner I am afraid on VBA
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: chris_bottomleyPosted on 2009-11-03 at 01:45:20ID: 25727307
Hello PetesPlace,
If the sheet tab name is sheet2 then this is correct but if the code page for the sheet has the name sheet2 whereas the tab name is something different then try:
sheet2.Range("E3").Value = Val(SIPPNo)
Regards,
chris_bottomley