This link might be helpful, especially if you still have the old switch connected. If you've already removed it, the job will be much more difficult.
I learned from personal experience several years ago that ceiling fan switches are not universal.
Best of luck,
WallyH