Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Excel Question

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion
Register FAQ Community Calendar

Excel Question
Reply
 
Thread Tools
Old 29-10-2006, 14:18   #1
Chris W
cf.mega poster
 
Join Date: Nov 2003
Location: Reading
Age: 41
Services: Virgin Media Broadband Size M
Posts: 6,546
Chris W has a nice shiny star
Chris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny star
Send a message via MSN to Chris W
Excel Question

I presume this is possible, but have no idea how to go about it...

I want to create a button on a spreadsheet that when clicked will clear the contents of certain cells.

Anyone know how to do this, or can at least point me in the right direction?

TIA
Chris W is offline   Reply With Quote
Advertisement
Old 29-10-2006, 14:24   #2
The Jackal
Inactive
 
Join Date: Oct 2006
Posts: 1,604
The Jackal has a bronzed appealThe Jackal has a bronzed appeal
The Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appeal
Re: Excel Question

Quote:
Originally Posted by Chris W View Post
I presume this is possible, but have no idea how to go about it...

I want to create a button on a spreadsheet that when clicked will clear the contents of certain cells.

Anyone know how to do this, or can at least point me in the right direction?

TIA
g00gling for : excel macro new button

http://www.google.co.uk/search?q=exc...UTF-8&oe=UTF-8

do you want to finish the search yourself I dont fancy doing any vis basic .net

EDIT
This one likes like being your friend
http://articles.techrepublic.com.com...9-1060039.html
The Jackal is offline   Reply With Quote
Old 29-10-2006, 14:42   #3
Chris W
cf.mega poster
 
Join Date: Nov 2003
Location: Reading
Age: 41
Services: Virgin Media Broadband Size M
Posts: 6,546
Chris W has a nice shiny star
Chris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny star
Send a message via MSN to Chris W
Re: Excel Question

Thanks,

I wasn't quite clear though... I would like a button inside the spreadsheet, as opposed to on the toolbar.

Also, just to complicate things, i'm using excel for mac- it needs to be compatible with mac and pc
Chris W is offline   Reply With Quote
Old 29-10-2006, 14:44   #4
AntiSilence
Inactive
 
AntiSilence's Avatar
 
Join Date: Jul 2006
Location: Sutton-In-Ashfield
Age: 47
Services: C#/ASP.NET Web Development
Posts: 3,580
AntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronze
AntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronzeAntiSilence is cast in bronze
Re: Excel Question

Quote:
Originally Posted by Chris W View Post
Thanks,

I wasn't quite clear though... I would like a button inside the spreadsheet, as opposed to on the toolbar.

Also, just to complicate things, i'm using excel for mac- it needs to be compatible with mac and pc
Can the Mac version use VBA? It can probably be done on the PC using VBA, but I'm not sure what code would be needed since I've never used Excel on the PC, nevermind on a Mac
AntiSilence is offline   Reply With Quote
Old 29-10-2006, 14:51   #5
The Jackal
Inactive
 
Join Date: Oct 2006
Posts: 1,604
The Jackal has a bronzed appealThe Jackal has a bronzed appeal
The Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appeal
Re: Excel Question

Quote:
Originally Posted by Chris W View Post
Thanks,

I wasn't quite clear though... I would like a button inside the spreadsheet, as opposed to on the toolbar.

Also, just to complicate things, i'm using excel for mac- it needs to be compatible with mac and pc
Holy moly a mac user : Unfortunately I dont have a mac and have strayed away from macs : I'm gonna be as useful as g00gle on this one mate...

Best of luck finding a solution
The Jackal is offline   Reply With Quote
Old 29-10-2006, 17:09   #6
jswalker2
Inactive
 
Join Date: Mar 2006
Posts: 5
jswalker2 will become famous soon enoughjswalker2 will become famous soon enoughjswalker2 will become famous soon enough
Re: Excel Question

Well i have just had a quick google and have found this

"VBA on the Mac is based on VB 5 (which is what Excel 97 on Windows was), whereas on the Windows side it is VB 6."

So as far as i can tell, the procedure would be exactly the same for both pc and mac, and they would be compatible between both systems.

To draw a button on the spreadsheet you will need to get the Forms toolbar up, and then select button and drag on out on the sheet. To attach a macro to it, right click on the button and click Assign Macro and then choose the macro you wish to use.

For clearing cells in vb, you can either record a macro, do what you need to do, and then stop the recording and it will write the code for you, or the vb code for it would be

Range("A1").Select
Selection.ClearContents

But you can choose whatever cells you need to, and repeat this as many times as needed until all of your cells have been cleared. To select a range of cells the code would be

Range("A1:B2").Select

The above code would select a group of four cells A1, B1, A2 and B2.

I hope that all helps, and i hope it works as i don't have a mac to test this on
jswalker2 is offline   Reply With Quote
Old 29-10-2006, 18:26   #7
Chris W
cf.mega poster
 
Join Date: Nov 2003
Location: Reading
Age: 41
Services: Virgin Media Broadband Size M
Posts: 6,546
Chris W has a nice shiny star
Chris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny starChris W has a nice shiny star
Send a message via MSN to Chris W
Re: Excel Question

Thanks! Am off to test it now so fingers crossed!!!

---------- Post added at 17:26 ---------- Previous post was at 17:14 ----------

works a treat many thanks
Chris W is offline   Reply With Quote
Old 29-10-2006, 20:18   #8
jswalker2
Inactive
 
Join Date: Mar 2006
Posts: 5
jswalker2 will become famous soon enoughjswalker2 will become famous soon enoughjswalker2 will become famous soon enough
Re: Excel Question

No problem, glad i could help
jswalker2 is offline   Reply With Quote
Old 01-11-2006, 10:10   #9
liamboyle06
Inactive
 
liamboyle06's Avatar
 
Join Date: Apr 2005
Location: St. Johnston, Co Donegal, Ireland
Age: 46
Services: 3 Mobile Sky+ HD NWE 2MB Wireless Broadband XBOX 360 PS3 Wii
Posts: 550
liamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of light
Send a message via MSN to liamboyle06
Re: Excel Question

Can I hijack this thread for another Excel Question.

Using Excel 2003, I have a pivot table and am trying to work out percentages of a subtotal, but when I format the Pivot to show percentages, it shows percentages of the overall total, is there anyway I can change it to show percentages of the subtotals instead.
Attached is the info I am working on to have.
liamboyle06 is offline   Reply With Quote
Old 01-11-2006, 15:21   #10
liamboyle06
Inactive
 
liamboyle06's Avatar
 
Join Date: Apr 2005
Location: St. Johnston, Co Donegal, Ireland
Age: 46
Services: 3 Mobile Sky+ HD NWE 2MB Wireless Broadband XBOX 360 PS3 Wii
Posts: 550
liamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of light
Send a message via MSN to liamboyle06
Re: Excel Question

pleaes help, still trying to figure it out
liamboyle06 is offline   Reply With Quote
Old 01-11-2006, 15:26   #11
gazzae
Inactive
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 46
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: Excel Question

I had a quick look but couldn't figure out what you wanted to achieve.

Maybe you could upload it again and highlight the cells that you are having problems what and put in the figure you want it to calculate to beside them.
gazzae is offline   Reply With Quote
Old 01-11-2006, 15:38   #12
liamboyle06
Inactive
 
liamboyle06's Avatar
 
Join Date: Apr 2005
Location: St. Johnston, Co Donegal, Ireland
Age: 46
Services: 3 Mobile Sky+ HD NWE 2MB Wireless Broadband XBOX 360 PS3 Wii
Posts: 550
liamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of lightliamboyle06 is a glorious beacon of light
Send a message via MSN to liamboyle06
Re: Excel Question

Quote:
Originally Posted by gazzae View Post
I had a quick look but couldn't figure out what you wanted to achieve.

Maybe you could upload it again and highlight the cells that you are having problems what and put in the figure you want it to calculate to beside them.
Hope this helps a bit more, thanks for looking though.
liamboyle06 is offline   Reply With Quote
Old 01-11-2006, 16:09   #13
gazzae
Inactive
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 46
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: Excel Question

Right click on the column - Field Settings - Options - Show data as "% of total". Is that any good?

---------- Post added at 15:09 ---------- Previous post was at 15:04 ----------

Actually pull your closure reason up onto the top row and then do the same but select % by column
gazzae is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:04.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum