Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Hiding formula/functions

I received a spreadsheet that someone wants me to help them with. The vba
code that runs when a button is clicked exports a range to a csv file. I
entered the following formula into the first column so that it would enter a
1 only when something is entered into column N. This part works.

=IF(N8<"",1,"")

However, when I know export the data it thinks it should export all 92 rows
because it thinks the formula is part of the data. How do I tell the code
to NOT include the formula when it searches for a blank row?

Thanks,

I am thinking there is something simple I can enter to hide formulas from
being seen... part of the code is below and I think it might be something I
could enter here.

If endRow = 8 Then
For rowNdx = 8 To endRow
inputRow = ""
For colNdx = 1 To 24

If Cells(rowNdx, colNdx).Value = "" Then
cellValue = ""

Else
cellValue = Cells(rowNdx, colNdx).Text

End If
inputRow = inputRow & cellValue & ";"
Next colNdx
inputRow = Left(inputRow, Len(inputRow) - 1)
Print #fNum, inputRow
Next rowNdx

Else
GoTo EndMacro:
End If

--
Matt
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
How to convert cell formula functions to code functions Adnan Excel Discussion (Misc queries) 1 October 1st 08 08:30 PM
Hiding functions steve Excel Worksheet Functions 2 September 15th 07 08:36 PM
formula/functions for average and if functions Petu71 Excel Worksheet Functions 2 August 5th 07 08:25 PM
Hiding formula JGG Excel Worksheet Functions 6 October 20th 06 10:52 AM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM


All times are GMT +1. The time now is 01:02 PM.

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"