Yeh, VBA is generally about as easy as it gets. I tend to do every little utility in Excel/VBA, compare files, bulk file rename, file backup, check the lottery, read old mail archives, alarm system to tell me when The Simpsons is on...
In professional use it's not bad for testing either when the client does not have proper testing software. All the scripts/HTML files I use in small business software are generated from excel. Have demo progs in excel we use at shows that display screen shots from programs.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: I wish I knew VBA!!
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "I wish I knew VBA!!"
Collapse
-
Originally posted by lilelvis2000 View PostUmmm...errr..I do a lot of VBA and it is anything BUT complex.
Sure it can get a bit confusing in Excel with looping over ranges, but nothing a good programmer can't figure out.
Easiest way to learn is to record a macro.then look at the code. . Then just go in and modify the bits you need. Heck! I build some of my code that way..saves a lot of time.
Is this not a technical discussion and is sitting in the wrong forum?
Leave a comment:
-
Originally posted by TonyEnglish View PostNot really - because
1 - often a mistake was spotted after the update had been done and had to be rectified meaning another 15 min delay. Even opening the sheet with the calculation on would cause a 15 min wait while Excel checked that the values hadn't changed
2 - often they would forget to switch the calculation on again which ment subsequent spreadsheets were saved with the calculation off.
3 - my solution was simple and easily auditable. The developer solution was not. There was no visability as to where the data had come from.
But then I'm not a proper developer!
Leave a comment:
-
Originally posted by DimPrawn View PostNow the client has 14m 45s in which to spend thinking about how to save the company money by shedding more staff.
Well done.
1 - often a mistake was spotted after the update had been done and had to be rectified meaning another 15 min delay. Even opening the sheet with the calculation on would cause a 15 min wait while Excel checked that the values hadn't changed
2 - often they would forget to switch the calculation on again which ment subsequent spreadsheets were saved with the calculation off.
3 - my solution was simple and easily auditable. The developer solution was not. There was no visability as to where the data had come from.
But then I'm not a proper developer!
Leave a comment:
-
Originally posted by TonyEnglish View PostI'm working at the moment rewriting a load of Excel VBA and much of it was written by the clients proper .net developers and it's bollocks. We had one instance where a guy wrote a function to pass variables from the sheet to a SQl string which went off and passed a query to a database. That bit worked fine, what wasn't so good was that he used his function 2000 times in the spreadsheet. So each time you made any modification excel would tell all the cells to recalculate and his function setup the link, searched the database and then closed the link. This would lock excel up for 15 mins at a time - and he passed it on in that state.
My change was to setup the link once, import all the data once and then close it. Then Excel functions could do the rest. The result is my copy takes about 15 secs to update while his took 15 mins. On mine you can make changes while on his you had to turn off the calculation before doing anything (which can be dangerous) or it was a 15 min per change wait.
Which just proves that you can still write crap code in any language.
Leave a comment:
-
Originally posted by joey122 View PostI looked into this yesterday and its not just recording macros - There s a pretty complex object model that you need to get a handle on and the way that Excel deals with updates and calcs is not always straighforward
Sure it can get a bit confusing in Excel with looping over ranges, but nothing a good programmer can't figure out.
Easiest way to learn is to record a macro.then look at the code. . Then just go in and modify the bits you need. Heck! I build some of my code that way..saves a lot of time.
Is this not a technical discussion and is sitting in the wrong forum?
Leave a comment:
-
Originally posted by TonyEnglish View PostI'm working at the moment rewriting a load of Excel VBA and much of it was written by the clients proper .net developers and it's bollocks. We had one instance where a guy wrote a function to pass variables from the sheet to a SQl string which went off and passed a query to a database. That bit worked fine, what wasn't so good was that he used his function 2000 times in the spreadsheet. So each time you made any modification excel would tell all the cells to recalculate and his function setup the link, searched the database and then closed the link. This would lock excel up for 15 mins at a time - and he passed it on in that state.
My change was to setup the link once, import all the data once and then close it. Then Excel functions could do the rest. The result is my copy takes about 15 secs to update while his took 15 mins. On mine you can make changes while on his you had to turn off the calculation before doing anything (which can be dangerous) or it was a 15 min per change wait.
Well done.
Leave a comment:
-
I'm working at the moment rewriting a load of Excel VBA and much of it was written by the clients proper .net developers and it's bollocks. We had one instance where a guy wrote a function to pass variables from the sheet to a SQl string which went off and passed a query to a database. That bit worked fine, what wasn't so good was that he used his function 2000 times in the spreadsheet. So each time you made any modification excel would tell all the cells to recalculate and his function setup the link, searched the database and then closed the link. This would lock excel up for 15 mins at a time - and he passed it on in that state.
My change was to setup the link once, import all the data once and then close it. Then Excel functions could do the rest. The result is my copy takes about 15 secs to update while his took 15 mins. On mine you can make changes while on his you had to turn off the calculation before doing anything (which can be dangerous) or it was a 15 min per change wait.
Leave a comment:
-
Originally posted by NotAllThere View PostIf you can do Java, then you can do .net. And if you can do .net you can do vba. Anyone can do vba... just recording macros, ffs.
Leave a comment:
-
Originally posted by joey122 View PostI come from a Java background and it seems a ton of jobs with Aston Carter are now advertising for people with VBA experience.
I guess companies are trying to build software of the cheap
Has anyone else noticed this shift? Or is just me?
HTH
Leave a comment:
-
If you can do Java, then you can do .net. And if you can do .net you can do vba. Anyone can do vba... just recording macros, ffs.
Leave a comment:
-
I wish I knew VBA!!
I come from a Java background and it seems a ton of jobs with Aston Carter are now advertising for people with VBA experience.
I guess companies are trying to build software of the cheap
Has anyone else noticed this shift? Or is just me?Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Experts you can trust to deliver UK and global solutions tailored to your needs! Yesterday 15:10
- Business & Personal Protection for Contractors Yesterday 13:58
- ‘Four interest rate cuts in 2025’ not echoed by contractor advisers Yesterday 08:24
- ‘Why Should We Hire You?’ How to answer as an IT contractor Jan 7 09:30
- Even IT contractors connect with 'New Year, New Job.' But… Jan 6 09:28
- Which IT contractor skills will be top five in 2025? Jan 2 09:08
- Secondary NI threshold sinking to £5,000: a limited company director’s explainer Dec 24 09:51
- Reeves sets Spring Statement 2025 for March 26th Dec 23 09:18
- Spot the hidden contractor Dec 20 10:43
- Accounting for Contractors Dec 19 15:30
Leave a comment: