Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blank columns to start

Status
Not open for further replies.

dodge20

MIS
Jan 15, 2003
1,048
US
Is there a way to stop excel from dropping the initial blank columns on a spreadsheet? I receive spreadsheets that I load into an informix database, and a lot of times I want the first several columns blank. When I save it as text (pipe delimited), it drops off the blank initial columns. Is there a way to prevent this? Dodge20
If it ain't broke, don't fix it.
 
Hiya

If your Informix db will stand it, try using column headers in your first row; this'll force Excel to deliver the empty columns as well

If necessary, you can always remove the first row containing the dummy field names

HTH

Cheers
Nikki
 
If you're using my code from a previous post to generate the pipe-delimited text file, the problem arises from using the usedrange property. In that case, you could

a) apply some formatting to a cell in the first column, e.g. make it bold. Even if it's empty, this will cause it to be included in the usedrange

b) slightly retool the code so it will automatically include these columns. I can help with that, if you'd like.

Rob
[flowerface]
 
Thanks you 2. Rob if you would like to help me I would be most appreciative. I am curious to how this will work. Dodge20
If it ain't broke, don't fix it.
 
I will follow up in original thread, so I can copy and modify the code.
Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top