Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Export Worksheet Data Problem

The first row is blank and shows all "" correctly. The 2nd row shows the data
correctly also, but stops on the 2nd row.

I'm using and trying to get Chip's code to work and it will not go past the
2nd row. I have 42 rows of data and 12 columns. I'm using his export code
from: http://www.cpearson.com/excel/imptext.htm#Export

I have data in rows 3-42, with some blank rows and in columns A-I with some
blank columns. I also have a few buttons, but do not expect/need those
exported.

I'm using this to export setups, and then reimport then into the same
worksheet. Any help would be appreciated.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Export Worksheet Data Problem

David,

The code works as expected for me. Do you have the SelectionOnly parameter
set to True? If so, you MUST select the entire range of data you want to
export. Otherwise, it will export only the active cell. If you want to
export the entire worksheet, make sure SelectionOnly is False.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
(email address is on the web site)



"David" wrote in message
...
The first row is blank and shows all "" correctly. The 2nd row shows the
data
correctly also, but stops on the 2nd row.

I'm using and trying to get Chip's code to work and it will not go past
the
2nd row. I have 42 rows of data and 12 columns. I'm using his export code
from: http://www.cpearson.com/excel/imptext.htm#Export

I have data in rows 3-42, with some blank rows and in columns A-I with
some
blank columns. I also have a few buttons, but do not expect/need those
exported.

I'm using this to export setups, and then reimport then into the same
worksheet. Any help would be appreciated.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Export Worksheet Data Problem

It was set to true, I set to False.
I tried the entire spreadsheet option, only did the first two rows again.
I tried just selected and it only did the first cell.
I "selected" all the cells with data (A1:L42) and tried both again with the
same result, but I did the selection manaually.
Should I put the selection in the code?
Could I send you my worksheet?
Let me know and thank you much for your assistance.

David

"Chip Pearson" wrote:

David,

The code works as expected for me. Do you have the SelectionOnly parameter
set to True? If so, you MUST select the entire range of data you want to
export. Otherwise, it will export only the active cell. If you want to
export the entire worksheet, make sure SelectionOnly is False.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
(email address is on the web site)



"David" wrote in message
...
The first row is blank and shows all "" correctly. The 2nd row shows the
data
correctly also, but stops on the 2nd row.

I'm using and trying to get Chip's code to work and it will not go past
the
2nd row. I have 42 rows of data and 12 columns. I'm using his export code
from: http://www.cpearson.com/excel/imptext.htm#Export

I have data in rows 3-42, with some blank rows and in columns A-I with
some
blank columns. I also have a few buttons, but do not expect/need those
exported.

I'm using this to export setups, and then reimport then into the same
worksheet. Any help would be appreciated.






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Export Worksheet Data Problem

Send the workbook to and I'll have a look at it.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
(email address is on the web site)


"David" wrote in message
...
It was set to true, I set to False.
I tried the entire spreadsheet option, only did the first two rows again.
I tried just selected and it only did the first cell.
I "selected" all the cells with data (A1:L42) and tried both again with
the
same result, but I did the selection manaually.
Should I put the selection in the code?
Could I send you my worksheet?
Let me know and thank you much for your assistance.

David

"Chip Pearson" wrote:

David,

The code works as expected for me. Do you have the SelectionOnly
parameter
set to True? If so, you MUST select the entire range of data you want to
export. Otherwise, it will export only the active cell. If you want to
export the entire worksheet, make sure SelectionOnly is False.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
(email address is on the web site)



"David" wrote in message
...
The first row is blank and shows all "" correctly. The 2nd row shows
the
data
correctly also, but stops on the 2nd row.

I'm using and trying to get Chip's code to work and it will not go past
the
2nd row. I have 42 rows of data and 12 columns. I'm using his export
code
from: http://www.cpearson.com/excel/imptext.htm#Export

I have data in rows 3-42, with some blank rows and in columns A-I with
some
blank columns. I also have a few buttons, but do not expect/need those
exported.

I'm using this to export setups, and then reimport then into the same
worksheet. Any help would be appreciated.








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Export Worksheet Data Problem

I think I figured it out...the next row has cells with formulas in it.

"Chip Pearson" wrote:

David,

The code works as expected for me. Do you have the SelectionOnly parameter
set to True? If so, you MUST select the entire range of data you want to
export. Otherwise, it will export only the active cell. If you want to
export the entire worksheet, make sure SelectionOnly is False.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
(email address is on the web site)



"David" wrote in message
...
The first row is blank and shows all "" correctly. The 2nd row shows the
data
correctly also, but stops on the 2nd row.

I'm using and trying to get Chip's code to work and it will not go past
the
2nd row. I have 42 rows of data and 12 columns. I'm using his export code
from: http://www.cpearson.com/excel/imptext.htm#Export

I have data in rows 3-42, with some blank rows and in columns A-I with
some
blank columns. I also have a few buttons, but do not expect/need those
exported.

I'm using this to export setups, and then reimport then into the same
worksheet. Any help would be appreciated.








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 can I export data from one worksheet to another? jtroberts Excel Discussion (Misc queries) 2 September 24th 08 09:52 PM
Problem in data export umeshawasthi Excel Worksheet Functions 0 May 19th 07 08:19 AM
Export data problem pawelwx Excel Programming 1 April 3rd 06 04:28 PM
Export address list data in an Excel worksheet for importing into. ACR/HJG Excel Discussion (Misc queries) 1 April 15th 05 11:43 PM
Export Excel data to Access Security problem Annelie[_3_] Excel Programming 5 December 30th 03 11:14 PM


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

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"