#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Macro Script

I have 2 tabs on a spreadsheet. Tab 1 contains a bunch of data with fixed
columns but random # of rows (whenever the data get updated).

Is there a macro script or formula to copy specified range of data in tab 1
to tab 2, and omitting all the blank rows?

I know it's kind of general .. but any advice will be appreciated. Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Macro Script

Consider using a single block copy/paste to copy ALL the rows from tab1 to
tab2 and then remove the empty rows in tab2 by a macro.
--
Gary's Student
gsnu200710


"mldancing" wrote:

I have 2 tabs on a spreadsheet. Tab 1 contains a bunch of data with fixed
columns but random # of rows (whenever the data get updated).

Is there a macro script or formula to copy specified range of data in tab 1
to tab 2, and omitting all the blank rows?

I know it's kind of general .. but any advice will be appreciated. Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Macro Script

Try this:

(Save your data, first, to another worksheet!!)

Highlight Column A, press the F5 key, Special, Blanks

The blank cells will be highlighted.

Press Ctrl - (Control and the Minus key)
Select Delete Rows

That should do it.

If it works, you could record a macro to use on your saved data.

HTH,

CaroleO

"mldancing" wrote:

I have 2 tabs on a spreadsheet. Tab 1 contains a bunch of data with fixed
columns but random # of rows (whenever the data get updated).

Is there a macro script or formula to copy specified range of data in tab 1
to tab 2, and omitting all the blank rows?

I know it's kind of general .. but any advice will be appreciated. Thank you.

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
is it possable to run an macro or script at start up as you could Stan Halls Excel Worksheet Functions 2 June 14th 06 07:57 PM
Importing Data - Macro or Script Norgbort Machine Excel Worksheet Functions 0 May 3rd 06 09:53 PM
Macro script for setting Print Area JB2010 Excel Discussion (Misc queries) 3 January 12th 06 06:05 PM
VB script/macro help - please !! Anthony Excel Discussion (Misc queries) 2 July 10th 05 07:58 PM
Macro script error - pls help !! Anthony Excel Discussion (Misc queries) 3 February 28th 05 01:49 PM


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