Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default reference new sheet in same workbook

I can't seem to figure out how to calculate information from "sheet5" and
place it on sheet6 starting with

A:1
A:2
A:3 and so on.

Any help with the VBA code I need?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default reference new sheet in same workbook

I'm not sure what your question is, but perhaps the following
will be useful.

Worksheets("Sheet6").Range("A1").Value = _
Worksheets("Sheet5").Range("A1").Value


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"R Doornbosch" wrote in message
...
I can't seem to figure out how to calculate information from

"sheet5" and
place it on sheet6 starting with

A:1
A:2
A:3 and so on.

Any help with the VBA code I need?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default reference new sheet in same workbook

when I use



Worksheets("Sheet6").Range(A, 1).Value = "My Name"

I get the error "Subject out of range"

I've tried changing "Sheet6" to the sheets name also.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default reference new sheet in same workbook

Do you have a sheet in your workbook named Sheet6? Also, change

Range(A,1)
to
Range("A1")
or
Cells(1,"A")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"R Doornbosch" wrote in message
...
when I use



Worksheets("Sheet6").Range(A, 1).Value = "My Name"

I get the error "Subject out of range"

I've tried changing "Sheet6" to the sheets name also.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default reference new sheet in same workbook

That worked THANKS




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference to sheet name in another workbook simonc Excel Discussion (Misc queries) 3 July 6th 08 01:56 PM
Setting a cell reference in one sheet that updates a workbook? Danhalawi Excel Discussion (Misc queries) 1 November 7th 06 04:08 PM
How do I use an indirect reference to a sheet in another workbook? ClintG Excel Discussion (Misc queries) 3 October 27th 06 07:23 PM
reference different sheet in same workbook Eric Excel Worksheet Functions 5 July 23rd 06 07:38 AM
Change sheet reference in new workbook [email protected] Excel Discussion (Misc queries) 2 January 26th 06 04:44 PM


All times are GMT +1. The time now is 09:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"