Quran Interactive Recitations - Click below

Friday, May 8, 2009

[Cooling Hearts] Use an Excel command to quickly separate first and last names



Use an Excel command to quickly separate first and last names
 

When importing data into a worksheet, it is often necessary to separate the cell contents into two columns.

For example, say you've imported the list of names shown in Figure A.

Figure A

For your mailing program, you need to separate the first and last names into two columns. Follow these steps:

  1. Select A2:A10.
  2. Go to Data | Text To Columns. In Excel 2007, click the Data tab and then click the Text To Columns command in the Data Tools group.
  3. In Step 1 of the Convert Text To Columns Wizard, click Delimited (Figure B).

Figure B

  1. Click Next to advance to Step 2 of the wizard, then select the Space check box and clear the Tab check box in the Delimiters section (Figure C).

Figure C

  1. Click Next to advance to Step 3, then click Text under Column Data Format (Figure D).

Figure D

  1. Click on the second column in the Data Preview window and then click Text under Column Data Format (Figure E).
  2. Enter D2 in the Destination text box and click Finish.

Figure E

Figure F shows the results.

Figure F

Microsoft Word


How to delete space above a column to even up the text

Word often adds paragraph spacing where you least expect it.

For example, say you've typed a page of text and used the Columns command to format it into two columns. When you do, you notice that the first column doesn't quite line up evenly with the top margin (Figure A).

Figure A

This happens when the paragraph is formatted with space above it. Clicking to the left of the first word in the first line of the column and pressing the backspace key won't eliminate the space. Instead, you will need to turn off the paragraph line spacing for the first paragraph.

Follow these steps:

  1. Click anywhere in the first paragraph.
  2. Go to Format | Paragraph. In Word 2007, click the dialog box launcher in the Paragraph group to open the Paragraph dialog box (Figure B).

Figure B

  1. Click in the Spacing Before text box, enter 0 and then click OK.
  2. With the extra line spacing turned off, the first line of the first column lines up evenly with the text in the first line of the second column (Figure C).

Figure C



Microsoft Access


Quickly save the current record in Access using code

There are a number of ways to save data via an Access form. The easiest way is to let a bound form take care of it.

However, sometimes even a bound form loses data, unexpectedly. For instance, if a user forgets to press Enter after changing or entering a value and code takes over, VBA won't consider that unsaved value in any processing. In addition, some developers like to bypass the bound behaviors and control the save process using code. Either way, the Dirty property is usually the most efficient way to save the current record.

The Dirty property applies to both the Form and Report objects. When a user changes a record but hasn't saved it, the Dirty property returns True--the object is dirty. When the record hasn't been changed, Dirty returns False. This Boolean structure makes it easy to save a record quickly--or not--as needed.

Simply drop the following statement into code:

If Me.Dirty Then Me.Dirty = False

Setting the object's Dirty property to False forces Access to save the current record. If the object isn't dirty, the statement does nothing.


__._,_.___
**************************************************************************
                      Cooling Hearts Information

All members are encouraged to submit their favourite attachments to the group! You are requested to properly format your contribution, use a unique subject line, and avoid virus warnings, chain letters, commercial messages, disclaimers etc. The better you follow the guidelines and the original or fresher you are the higher are the chances of your mails getting posted!

You will be banned from the group if you spam or flame fellow members, ignore posting guidelines routinely, send out auto replies, or post advertisements.

It is recommended that you go through the rules of Cooling Hearts in files section on the web page. It is  also recommended that you keep your inbox free as this will keep you an active member and you will receive all the mails sent on Cooling Hearts.

Cooling Hearts is not responsible for the opinions and information posted by the Members of this mailing list.

To Subscribe to Cooling Hearts, send a blank email to:
Cooling_Hearts-subscribe@yahoogroups.com

© Posting of Cooling Hearts material on any forum should be done only with owner's permission.
**************************************************************************
Recent Activity
Visit Your Group
Dog Zone

on Yahoo! Groups

Join a Group

all about dogs.

Yahoo! Groups

Mom Power

Discover doing more

for your family

Y! Messenger

PC-to-PC calls

Call your friends

worldwide - free!

.

__,_._,___

No comments:

Post a Comment

Blog Archive