Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Dynamically create a formula in Sheet B referencing SheetA

I am writing a scheduling program. What I want to do, through VBA, is to
create a formula in Sheet B that references a cell in Sheet A. In essence I
want to put a formula:
=MASTER!B15

in a cell in Sheet B through VBA so that if the value in Sheet A changes,
the value in Sheet B will also change. I cannot simply create the formula in
Sheet B because Sheet A changes dynamically.

Thanks in advance for any help.

--
M. Shipp
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Dynamically create a formula in Sheet B referencing SheetA

Those are fixed positions. I need dynamic so that the b1 changes. Some type
of loop I assume. Thanks but it doesn't fit the bill.

"Don Guillett" wrote:

try
sheets("destination").range("b1").value=sheets("so urce").range("b1")

--
Don Guillett
SalesAid Software

"SHIPP" wrote in message
...
I am writing a scheduling program. What I want to do, through VBA, is to
create a formula in Sheet B that references a cell in Sheet A. In essence

I
want to put a formula:
=MASTER!B15

in a cell in Sheet B through VBA so that if the value in Sheet A changes,
the value in Sheet B will also change. I cannot simply create the formula

in
Sheet B because Sheet A changes dynamically.

Thanks in advance for any help.

--
M. Shipp




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Dynamically create a formula in Sheet B referencing SheetA


For i = 1 To 10
Worksheets("Sheet B").Cells(i,"B").Formula = "=MASTER!B" & i
Next i

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SHIPP" wrote in message
...
Those are fixed positions. I need dynamic so that the b1 changes. Some

type
of loop I assume. Thanks but it doesn't fit the bill.

"Don Guillett" wrote:

try
sheets("destination").range("b1").value=sheets("so urce").range("b1")

--
Don Guillett
SalesAid Software

"SHIPP" wrote in message
...
I am writing a scheduling program. What I want to do, through VBA, is

to
create a formula in Sheet B that references a cell in Sheet A. In

essence
I
want to put a formula:
=MASTER!B15

in a cell in Sheet B through VBA so that if the value in Sheet A

changes,
the value in Sheet B will also change. I cannot simply create the

formula
in
Sheet B because Sheet A changes dynamically.

Thanks in advance for any help.

--
M. Shipp






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
Create formula referencing drop down list (data validation) mldancing Excel Discussion (Misc queries) 4 August 22nd 07 08:16 PM
Referencing a cell dynamically jliz2803 Excel Worksheet Functions 3 February 14th 06 09:40 PM
copy formula referencing sheet name to another sheet Tat Excel Worksheet Functions 1 June 26th 05 03:00 AM
Referencing labels dynamically. liddlem[_3_] Excel Programming 2 January 16th 04 05:24 PM
Dynamically create Total using VBA formula Kondayampalli Excel Programming 0 August 28th 03 03:06 PM


All times are GMT +1. The time now is 09:17 AM.

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

About Us

"It's about Microsoft Excel"