#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macros

So i'm pretty new to macro use and i can get it to work pretty good a
long as i am only in one workbook. i use

cells(5,2).value

so what do i do to get it to go to another worksheet

how do i refrance other worksheet's while using macros?

thanx for the help

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Macros

Neuther

Example only.

Worksheets("Sheet2").Range("A1:J10").Copy _
Destination:=ActiveSheet.Range("K43")

Copies a range of cells from Sheet2 to the worksheet that is active when you
call the macro.

For your example use

Worksheets("Sheet2").cells(5, 2).value = ActiveSheet.cells(7, 3).value

Or similar.

Try recording a macro while copying from one sheet to another to see the
syntax used.

Then go to Tushar Mehta's site and browse through "Beyond Excel's Recorder"

http://www.tushar-mehta.com/

And David McRitchie's "Getting started with Macros"

http://www.mvps.org/dmcritchie/excel/getstarted.htm

Gord Dibben Excel MVP

On Fri, 20 Feb 2004 19:36:46 -0600, Neuther
wrote:

So i'm pretty new to macro use and i can get it to work pretty good as
long as i am only in one workbook. i use

cells(5,2).value

so what do i do to get it to go to another worksheet

how do i refrance other worksheet's while using macros?

thanx for the help.


---
Message posted from http://www.ExcelForum.com/


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
Macros warning always shows up, even if all macros removed Joe M Excel Discussion (Misc queries) 1 December 20th 07 04:45 AM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
Macro Size Limit / open macros with macros? andycharger[_7_] Excel Programming 6 February 13th 04 02:00 PM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM


All times are GMT +1. The time now is 10:07 AM.

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"