#1   Report Post  
Posted to microsoft.public.excel.misc
saveas getting rid of formulas
 
Posts: n/a
Default Indirect question

I'm using the following function in a parameter
=indirect("Domestic!A"&row())
It works great until I save the spread sheet. When I reopen I get the
following error message and the parm has disappeared?

Could not obtain parameter from reference (Bad name or workbook not open).
Proceed to prompt for value.

Does anyone know why this is happening? Thank You
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jonathan Cooper
 
Posts: n/a
Default Indirect question

The row() needs to reference something. Try this, assuming you are entering
the formula on row 1.

=INDIRECT("Domestic!A"&ROW(A1))

"saveas getting rid of formulas" wrote:

I'm using the following function in a parameter
=indirect("Domestic!A"&row())
It works great until I save the spread sheet. When I reopen I get the
following error message and the parm has disappeared?

Could not obtain parameter from reference (Bad name or workbook not open).
Proceed to prompt for value.

Does anyone know why this is happening? Thank You

  #3   Report Post  
Posted to microsoft.public.excel.misc
saveas getting rid of formulas
 
Posts: n/a
Default Indirect question

No this had the same result.
both
=INDIRECT("Domestic!A"&ROW(A1))
and
=INDIRECT("Domestic!A"&ROW( ))
work and return the cell value correctly. I get the error when I then
save the spread sheet and try to reopen it. Thanks


"Jonathan Cooper" wrote:

The row() needs to reference something. Try this, assuming you are entering
the formula on row 1.

=INDIRECT("Domestic!A"&ROW(A1))

"saveas getting rid of formulas" wrote:

I'm using the following function in a parameter
=indirect("Domestic!A"&row())
It works great until I save the spread sheet. When I reopen I get the
following error message and the parm has disappeared?

Could not obtain parameter from reference (Bad name or workbook not open).
Proceed to prompt for value.

Does anyone know why this is happening? Thank You

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Indirect question

No, ROW() implicitly declares the current row, the row the formula is in.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Jonathan Cooper" wrote in
message ...
The row() needs to reference something. Try this, assuming you are

entering
the formula on row 1.

=INDIRECT("Domestic!A"&ROW(A1))

"saveas getting rid of formulas" wrote:

I'm using the following function in a parameter
=indirect("Domestic!A"&row())
It works great until I save the spread sheet. When I reopen I get the
following error message and the parm has disappeared?

Could not obtain parameter from reference (Bad name or workbook not

open).
Proceed to prompt for value.

Does anyone know why this is happening? Thank You



  #5   Report Post  
Posted to microsoft.public.excel.misc
Kevin Vaughn
 
Posts: n/a
Default Indirect question

It's a parameter to what?
--
Kevin Vaughn


"saveas getting rid of formulas" wrote:

I'm using the following function in a parameter
=indirect("Domestic!A"&row())
It works great until I save the spread sheet. When I reopen I get the
following error message and the parm has disappeared?

Could not obtain parameter from reference (Bad name or workbook not open).
Proceed to prompt for value.

Does anyone know why this is happening? Thank You



  #6   Report Post  
Posted to microsoft.public.excel.misc
flummi
 
Posts: n/a
Default Indirect question

Strange. I copied your formula exactly into a worksheet, saved and
re-opened it and it worled fine.

Hans

  #7   Report Post  
Posted to microsoft.public.excel.misc
saveas getting rid of formulas
 
Posts: n/a
Default Indirect question

it is a parameter for an external data source - sql server

"flummi" wrote:

Strange. I copied your formula exactly into a worksheet, saved and
re-opened it and it worled fine.

Hans


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
Copying a formulae down a column that includes an INDIRECT A.Webb Excel Discussion (Misc queries) 10 January 14th 06 03:42 AM
Pivot table question gary Excel Discussion (Misc queries) 1 January 10th 06 06:25 PM
Using the Indirect function with a sheet number instead of a sheet name JDB Excel Worksheet Functions 5 December 31st 05 03:03 PM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
INDIRECT function question Joe Excel Worksheet Functions 1 February 14th 05 03:54 PM


All times are GMT +1. The time now is 02:12 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"