Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Ignore Blank Cells

I have a code that copies a large range of cells from one workbood to
another, the problem is when I do this all blank cells when transfered = 0 .
Does anyone know what line of code will skip the blank cells of have them
transfered over blank.

Thank you to anyone that helps.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Ignore Blank Cells

Do you mean by linking

Instead of

=Sheet1!A1

use
=if(sheet1!A1="","",Sheet1!A1)

--
Regards,
Tom Ogilvy


"Benz" wrote:

I have a code that copies a large range of cells from one workbood to
another, the problem is when I do this all blank cells when transfered = 0 .
Does anyone know what line of code will skip the blank cells of have them
transfered over blank.

Thank you to anyone that helps.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Ignore Blank Cells

No im not using a formula..... im refereing to a workbook other then the main
source wookbook. Heres what I have.


Sub File_In_Local_Folder()
Application.ScreenUpdating = False
On Error Resume Next

'Call the macro GetRange


GetRange "C:\Documents and Settings\home\Desktop\taskTEST", "TASKS",
"A1:AB71", _
Sheets("Sheet3").Range("A1")

On Error GoTo 0
Application.ScreenUpdating = True
End Sub

"Tom Ogilvy" wrote:

Do you mean by linking

Instead of

=Sheet1!A1

use
=if(sheet1!A1="","",Sheet1!A1)

--
Regards,
Tom Ogilvy


"Benz" wrote:

I have a code that copies a large range of cells from one workbood to
another, the problem is when I do this all blank cells when transfered = 0 .
Does anyone know what line of code will skip the blank cells of have them
transfered over blank.

Thank you to anyone that helps.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Ignore Blank Cells

I suspect your GetRange function is some modification of John Walkenbach's
getvalue function:

http://www.j-walk.com/ss/excel/tips/tip82.htm

The problem is the same as the linking problem I described. However, I
doubt there is a simple fix you can use such as the one I have shown. You
could have your code put hard coded linking formulas into the spreadsheet
using the IF construct I have shown, then replace those formulas with the
results returned.

--
Regards,
Tom Ogilvy




"Benz" wrote:

No im not using a formula..... im refereing to a workbook other then the main
source wookbook. Heres what I have.


Sub File_In_Local_Folder()
Application.ScreenUpdating = False
On Error Resume Next

'Call the macro GetRange


GetRange "C:\Documents and Settings\home\Desktop\taskTEST", "TASKS",
"A1:AB71", _
Sheets("Sheet3").Range("A1")

On Error GoTo 0
Application.ScreenUpdating = True
End Sub

"Tom Ogilvy" wrote:

Do you mean by linking

Instead of

=Sheet1!A1

use
=if(sheet1!A1="","",Sheet1!A1)

--
Regards,
Tom Ogilvy


"Benz" wrote:

I have a code that copies a large range of cells from one workbood to
another, the problem is when I do this all blank cells when transfered = 0 .
Does anyone know what line of code will skip the blank cells of have them
transfered over blank.

Thank you to anyone that helps.

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 ignore blank cells aloiz Excel Discussion (Misc queries) 1 January 23rd 09 09:14 PM
ignore cells that are blank Robert Excel Discussion (Misc queries) 4 November 27th 08 02:52 AM
Ignore Blank or 0 cells Dave Excel Worksheet Functions 4 August 20th 08 12:06 AM
How to ignore blank cells MattBeckwith Charts and Charting in Excel 10 February 19th 06 11:16 PM
how do you ignore blank cells Kerry Excel Discussion (Misc queries) 1 February 16th 05 01:55 PM


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